diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-28 01:08:43 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-07-28 03:57:14 +0200 |
commit | 64071805eda2b57d2b77943bb3f9865d90562ecf (patch) | |
tree | f716258e3fd266b5c917765ba56ae1a6a5a6a8f0 /tree.h | |
parent | git-convert-cache: fix up mode conversion (diff) | |
download | git-64071805eda2b57d2b77943bb3f9865d90562ecf.tar.xz git-64071805eda2b57d2b77943bb3f9865d90562ecf.zip |
git-fsck-cache: be stricter about "tree" objects
In particular, warn about things like zero-padding of the mode bits,
which is a big no-no, since it makes otherwise identical trees have
different representations (and thus different SHA1 numbers).
Also make the warnings more regular.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'tree.h')
-rw-r--r-- | tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -10,6 +10,7 @@ struct tree_entry_list { unsigned directory : 1; unsigned executable : 1; unsigned symlink : 1; + unsigned zeropad : 1; unsigned int mode; char *name; union { |