git-fsck-cache.c: check commit objects more carefully
authorLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 22:16:03 +0000 (15:16 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 28 Jul 2005 01:57:03 +0000 (18:57 -0700)
commitde2eb7f694da6396828e52588c9807a948a039a0
tree98cd90b0a21758cc28625e1c95150a70ae1e7992
parentf7cc77d78b9ee59dce162a50815ac6c1918a4397
git-fsck-cache.c: check commit objects more carefully

We historically used to be very careful in fsck-cache, but when it was
re-written to use "parse_object()" instead of parsing everything by
hand, it lost a bit of the checks.  This, together with the previous
commit, should make it do more proper commit object syntax checks.

Also add a "--strict" flag, which warns about the old-style "0664" file
mode bits, which shouldn't exist in modern trees, but that happened
early on in git trees and that the default git-fsck-cache thus silently
accepts.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fsck-cache.c