Skip to content

Commit d08ed6d

Browse files
hendebygitster
authored andcommitted
gitattributes: Document built in hunk header patterns
Since the hunk header pattern text was written patterns for Ruby and Pascal/Delphi have been added. For users to be able to find them they should be documented not only in code. Signed-off-by: Gustaf Hendeby <hendeby@isy.liu.se> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bd7b371 commit d08ed6d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Documentation/gitattributes.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,16 @@ backslash, and zero or more occurrences of `sub` followed by
307307
There are a few built-in patterns to make this easier, and `tex`
308308
is one of them, so you do not have to write the above in your
309309
configuration file (you still need to enable this with the
310-
attribute mechanism, via `.gitattributes`). Another built-in
311-
pattern is defined for `java` that defines a pattern suitable
312-
for program text in Java language.
310+
attribute mechanism, via `.gitattributes`). The following built in
311+
patterns are available:
312+
313+
- `java` suitable for source code in the Java lanugage.
314+
315+
- `pascal` suitable for source code in the Pascal/Delphi language.
316+
317+
- `ruby` suitable for source code in the Ruby language.
318+
319+
- `tex` suitable for source code for LaTeX documents.
313320

314321

315322
Performing a three-way merge

0 commit comments

Comments
 (0)