summaryrefslogtreecommitdiff
path: root/Documentation/gitattributes.txt
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2010-09-10 16:18:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-10 16:38:29 (GMT)
commit909a5494f869371565ed9326e984adeabf42611d (patch)
treeb5ac8af083e68f63af77130aabf68ff0f747b48c /Documentation/gitattributes.txt
parentbff42061214e17f342efc909c73f29bf66df51e9 (diff)
downloadgit-909a5494f869371565ed9326e984adeabf42611d.zip
git-909a5494f869371565ed9326e984adeabf42611d.tar.gz
git-909a5494f869371565ed9326e984adeabf42611d.tar.bz2
userdiff.c: add builtin fortran regex patterns
This adds fortran xfuncname and wordRegex patterns to the list of builtin patterns. The intention is for the patterns to be appropriate for all versions of fortran including 77, 90, 95. The patterns can be enabled by adding the diff=fortran attribute to the .gitattributes file for the desired file glob. This also adds a new macro named IPATTERN which is just like the PATTERNS macro except it sets the REG_ICASE flag so that case will be ignored. The test code in t4018 and the docs were updated as appropriate. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitattributes.txt')
-rw-r--r--Documentation/gitattributes.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index e5a27d8..fbf507a 100644
--- a/Documentation/gitattributes.txt
+++ b/Documentation/gitattributes.txt
@@ -477,6 +477,8 @@ patterns are available:
- `csharp` suitable for source code in the C# language.
+- `fortran` suitable for source code in the Fortran language.
+
- `html` suitable for HTML/XHTML documents.
- `java` suitable for source code in the Java language.