Skip to content

Commit a8d0591

Browse files
committed
Enable the markdown hunk header for diff context.
Telling Git that .md files are markdown makes the @@ context lines in git-diff show the section heading that contains the change, rather than just showing one additional line of the context before the change. For more information, see the section "Defining a custom hunk-header" in the gitattributes(5) man page.
1 parent c914c44 commit a8d0591

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.md linguist-detectable=true
22
*.md linguist-documentation=false
3+
*.md diff=markdown

0 commit comments

Comments
 (0)