about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-19 13:22:21 -0700
committerJunio C Hamano <gitster@pobox.com>2016-07-19 13:22:21 -0700
commitf5236a776f31de2654bca9001aa74ef9fe0819d8 (patch)
treee909bafdf9a4058968ba16e5d8b29a44f7d13026
parent566fdaf611f44724120412a43132c07b020fc4f1 (diff)
parente82675a040d559c56be54255901138a979eeec21 (diff)
downloadgit-svn-f5236a776f31de2654bca9001aa74ef9fe0819d8.tar.gz
The .c/.h sources are marked as such in our .gitattributes file so
that "git diff -W" and friends would work better.

* rs/help-c-source-with-gitattributes:
  .gitattributes: set file type for C files
-rw-r--r--.gitattributes2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes
index 5e98806c6c..320e33c327 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,3 +1,3 @@
 * whitespace=!indent,trail,space
-*.[ch] whitespace=indent,trail,space
+*.[ch] whitespace=indent,trail,space diff=cpp
 *.sh whitespace=indent,trail,space