diff options
author | René Scharfe <l.s.r@web.de> | 2016-07-07 22:11:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-07 14:11:15 -0700 |
commit | e82675a040d559c56be54255901138a979eeec21 (patch) | |
tree | 2f2ab434aa779105321e5fb8186e3adf1d6663c3 /perl | |
parent | More fixes for 2.9.1 (diff) | |
download | tgif-e82675a040d559c56be54255901138a979eeec21.tar.xz |
.gitattributes: set file type for C files
Set the diff attribute for C source file to "cpp" in order to improve
git's ability to determine hunk headers. In particular it helps avoid
showing unindented labels in hunk headers. That in turn is useful for
git diff -W and git grep -W, which show whole functions now instead of
stopping at a label.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'perl')
0 files changed, 0 insertions, 0 deletions