[PATCH 01/10] .gitattributes: specify the language used
- From
- David A. Dalrymple (and Bhushan G. Lodha) <dad-bgl@mit.edu>
- Date
- Mar 27, 2014, 18:50 UTC
- Message-ID
- <a833f392bebae7a2441d0a6e81a1c6dc52fa682e.1395942768.git.davidad@alum.mit.edu>
- In-Reply-To
- <1395946256-67124-1-git-send-email-dad-bgl@mit.edu>
From: "Bhushan G. Lodha & David A. Dalrymple" <dad-bgl@mit.edu>
Since git can intelligently emit diff hunk headers based on the programming language of each file, assuming that the language is specified in .gitattributes, it makes sense to specify our own language (cpp) in our own .gitattributes file.
Signed-off-by: David Dalrymple (on zayin) <davidad@alum.mit.edu> --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitattributes b/.gitattributes index 5e98806..320e33c 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
-- 1.7.12.4 (Apple Git-37)