summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6407180)
raw | patch | inline | side by side (parent: 6407180)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Jul 2005 01:55:18 +0000 (18:55 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Jul 2005 01:57:14 +0000 (18:57 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-fsck-cache.txt | patch | blob | history | |
fsck-cache.c | patch | blob | history |
index f1c18c10d82c63cab74779a4feacd2cde8671767..aaec2de0356400a7d35c5414726a72d46f8876dd 100644 (file)
SYNOPSIS
--------
-'git-fsck-cache' [--tags] [--root] [--unreachable] [--cache] [--standalone | --full] [<object>*]
+'git-fsck-cache' [--tags] [--root] [--unreachable] [--cache] [--standalone | --full] [--strict] [<object>*]
DESCRIPTION
-----------
and corresponding pack subdirectories in alternate
object pools; cannot be used with --standalone.
+--strict::
+ Enable more strict checking, namely to catch a file mode
+ recorded with g+w bit set, which was created by older
+ versions of GIT. Existing repositories, including the
+ Linux kernel, GIT itself, and sparse repository have old
+ objects that triggers this check, but it is recommended
+ to check new projects with this flag.
+
It tests SHA1 and general object sanity, and it does full tracking of
the resulting reachability and everything else. It prints out any
corruption it finds (missing or bad objects), and if you use the
diff --git a/fsck-cache.c b/fsck-cache.c
index 6115514d4f0974d70abbe84aa35d001ec3316a82..e40c64332f2ca8b01b12d1b3f050165f61836b3b 100644 (file)
--- a/fsck-cache.c
+++ b/fsck-cache.c
continue;
}
if (*arg == '-')
- usage("git-fsck-cache [--tags] [[--unreachable] [--cache] [--standalone | --full] <head-sha1>*]");
+ usage("git-fsck-cache [--tags] [--root] [[--unreachable] [--cache] [--standalone | --full] [--strict] <head-sha1>*]");
}
if (standalone && check_full)