Code

fsck-cache: warn about missing commit dates
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 24 Apr 2005 23:20:53 +0000 (16:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 24 Apr 2005 23:20:53 +0000 (16:20 -0700)
Now that we have hopefully converted all old archives, we
can consider it an error.

fsck-cache.c

index 985adb68bb50d087895e2a2cb0b7b5d009f627f2..e3c41d48e9fe3e298a8dc3f2b2ecc2a71f6629e8 100644 (file)
@@ -57,6 +57,8 @@ static int fsck_commit(unsigned char *sha1, void *data, unsigned long size)
                return -1;
        if (!commit->parents)
                printf("root %s\n", sha1_to_hex(sha1));
+       if (!commit->date)
+               printf("bad commit date in %s\n", sha1_to_hex(sha1));
        return 0;
 }