summaryrefslogtreecommitdiff
path: root/ws.c
diff options
context:
space:
mode:
authorNanako Shiraishi <nanako3@lavabit.com>2009-06-19 10:42:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-21 17:42:37 (GMT)
commite2f6331a14213f01a6e68e71ed63c77323a3e759 (patch)
tree8aa1b4bda0f53624432435c2e5e3c0177a3a7935 /ws.c
parentc6720cfa49fde6d78b010c088a476d226d161983 (diff)
downloadgit-e2f6331a14213f01a6e68e71ed63c77323a3e759.zip
git-e2f6331a14213f01a6e68e71ed63c77323a3e759.tar.gz
git-e2f6331a14213f01a6e68e71ed63c77323a3e759.tar.bz2
.gitattributes: CR at the end of the line is an error
When a CR is accidentally added at the end of a C source file in the git project tree, "git diff --check" doesn't detect it as an error. $ echo abQ | tr Q '\015' >>fast-import.c $ git diff --check I think this is because the "whitespace" attribute is set to *.[ch] files without specifying what kind of errors are caught. It makes git "notice all types of errors" (as described in the documentation), but I think it is incorrectly setting cr-at-eol, too, and hides this error. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ws.c')
0 files changed, 0 insertions, 0 deletions