Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2014-03-12 07:37:53 +0000
committerTomasz Zarna2014-03-17 11:39:16 +0000
commit4c85c0ddada4871565f967d98aa21c29ded57925 (patch)
treeedfcb6bf19591954065079175e205063b8faef05 /org.eclipse.egit.core
parentd6a9e12bc2535a4ed335ad426f5cebfc13e67cb8 (diff)
downloadegit-4c85c0ddada4871565f967d98aa21c29ded57925.tar.gz
egit-4c85c0ddada4871565f967d98aa21c29ded57925.tar.xz
egit-4c85c0ddada4871565f967d98aa21c29ded57925.zip
Add a text content type for patches
This enables proper content type detection of patches (i.e. files with .patch extension) when drag and dropping commits Bug: 358691 Change-Id: Ic656f3e1a1925e4e7655ee03498342552376ca4b Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
Diffstat (limited to 'org.eclipse.egit.core')
-rw-r--r--org.eclipse.egit.core/plugin.properties1
-rw-r--r--org.eclipse.egit.core/plugin.xml10
2 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.egit.core/plugin.properties b/org.eclipse.egit.core/plugin.properties
index 4a44d5fa0c..632dc22753 100644
--- a/org.eclipse.egit.core/plugin.properties
+++ b/org.eclipse.egit.core/plugin.properties
@@ -8,3 +8,4 @@
###############################################################################
plugin_name=Git Team Provider Core
provider_name=Eclipse EGit
+patch_ContentTypeName=Patch File \ No newline at end of file
diff --git a/org.eclipse.egit.core/plugin.xml b/org.eclipse.egit.core/plugin.xml
index 029a29fb7a..31db1ac465 100644
--- a/org.eclipse.egit.core/plugin.xml
+++ b/org.eclipse.egit.core/plugin.xml
@@ -21,4 +21,14 @@
enabled="true"
pattern="*/.git/*"/>
</extension>
+ <extension
+ point="org.eclipse.core.contenttype.contentTypes">
+ <content-type
+ base-type="org.eclipse.core.runtime.text"
+ file-extensions="patch"
+ id="org.eclipse.egit.patch"
+ name="%patch_ContentTypeName"
+ priority="normal">
+ </content-type>
+ </extension>
</plugin>

Back to the top