Document --strict flag to the fsck-cache command.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -9,7 +9,7 @@ git-fsck-cache - Verifies the connectivity and validity of the objects in the da
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
'git-fsck-cache' [--tags] [--root] [--unreachable] [--cache] [--standalone | --full] [<object>*]
|
'git-fsck-cache' [--tags] [--root] [--unreachable] [--cache] [--standalone | --full] [--strict] [<object>*]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
@ -53,6 +53,14 @@ OPTIONS
|
|||||||
and corresponding pack subdirectories in alternate
|
and corresponding pack subdirectories in alternate
|
||||||
object pools; cannot be used with --standalone.
|
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
|
It tests SHA1 and general object sanity, and it does full tracking of
|
||||||
the resulting reachability and everything else. It prints out any
|
the resulting reachability and everything else. It prints out any
|
||||||
corruption it finds (missing or bad objects), and if you use the
|
corruption it finds (missing or bad objects), and if you use the
|
||||||
|
@ -445,7 +445,7 @@ int main(int argc, char **argv)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (*arg == '-')
|
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)
|
if (standalone && check_full)
|
||||||
|
Reference in New Issue
Block a user