VcsBase.mimetypes.xml 694 Bytes
Newer Older
con's avatar
con committed
1 2 3 4 5 6
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
    <mime-type type="text/x-patch">
        <sub-class-of type="text/plain"/>
        <comment>Differences between files</comment>
        <glob pattern="*.patch"/>
7 8 9 10 11 12
        <glob pattern="*.diff"/>
        <!-- Find unified diffs from code pasting utilities by checking for "+++ foo.cpp"
	     Note that this must have a higher priority than any content
	     rule for C++ as we want diffs to take preference when looking
	     at a C++ patch.
	  -->
13
        <magic priority="60">
14
           <match value="&#x0a;+++ " type="string" offset="0:10000"/>
15
        </magic>
con's avatar
con committed
16 17
    </mime-type>
</mime-info>