From 64071805eda2b57d2b77943bb3f9865d90562ecf Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 27 Jul 2005 16:08:43 -0700 Subject: 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 --- tree.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tree.h') diff --git a/tree.h b/tree.h index 74fe09d763..ae61bcca6e 100644 --- a/tree.h +++ b/tree.h @@ -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 { -- cgit v1.2.1