using no attributes at all, here's part of the output of log --decorate=short --source --graph --pretty=oneline --stat: * 1f0a8441a99478a62fc71d29373ae3f3ad217862 HEAD commitmessage | somefile.cpp | Bin 577366 -> 578276 bytes | otherfile.cpp | 356 +++-------------------------- Which raises question 1: why does git treat somefile.cpp as binary, while otherfile.cpp is treated as text? When using either .gitattributes or $GIT_DIR/info/attributes with *.cpp -text crlf diff, I get the desired results: * 1f0a8441a99478a62fc71d29373ae3f3ad217862 HEAD commitmessage | somefile.cpp | 26 ++- | otherfile.cpp | 356 +++-------------------------- I would like to apply this globally: create a gitattributes in my home dir and let git know it's there by setting the option in ~/.gitconfig: core.attributesfile = ~/gitattributes This has no effect however, for no repository. Hence the second question: why would git not use the main attributes file? I use Cygwin as a shell, and use the Msysgit distribution, with msysgit /bin added to Cygwin's PATH. Using Msysgit's git-bash.bat shell makes no difference though.
-- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.