Skip to content

Commit b9b07ef

Browse files
tgummerergitster
authored andcommitted
.gitattributes: add conflict-marker-size for relevant files
Some files in git.git contain lines that look like conflict markers, either in examples or tests, or in the case of Documentation/gitk.txt because of the asciidoc heading. Having conflict markers the same length as the actual content can be confusing for humans, and is impossible to handle for tools like 'git rerere'. Work around that by setting the 'conflict-marker-size' attribute for those files to 32, which makes the conflict markers unambiguous. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 53f9a3e commit b9b07ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
/command-list.txt eol=lf
1010
/GIT-VERSION-GEN eol=lf
1111
/mergetools/* eol=lf
12+
/Documentation/git-merge.txt conflict-marker-size=32
13+
/Documentation/gitk.txt conflict-marker-size=32
14+
/Documentation/user-manual.txt conflict-marker-size=32
15+
/t/t????-*.sh conflict-marker-size=32

0 commit comments

Comments
 (0)