X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-fsck.txt;h=45c0bee50a15e21516a7b288b546b3a40c48028e;hb=065c5ac1688ca5cde826dc87d9791c2eedec7026;hp=058009d2fab4c73edcbfefe7b48c5f9348459da3;hpb=53a58245863eff3d70aaa3ac75d7d57e843fc91d;p=git.git diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt index 058009d2f..45c0bee50 100644 --- a/Documentation/git-fsck.txt +++ b/Documentation/git-fsck.txt @@ -9,8 +9,8 @@ git-fsck - Verifies the connectivity and validity of the objects in the database SYNOPSIS -------- [verse] -'git-fsck' [--tags] [--root] [--unreachable] [--cache] - [--full] [--strict] [*] +'git-fsck' [--tags] [--root] [--unreachable] [--cache] [--no-reflogs] + [--full] [--strict] [--verbose] [--lost-found] [*] DESCRIPTION ----------- @@ -38,6 +38,12 @@ index file and all SHA1 references in .git/refs/* as heads. Consider any object recorded in the index also as a head node for an unreachability trace. +--no-reflogs:: + Do not consider commits that are referenced only by an + entry in a reflog to be reachable. This option is meant + only to search for commits that used to be in a ref, but + now aren't, but are still in that corresponding reflog. + --full:: Check not just objects in GIT_OBJECT_DIRECTORY ($GIT_DIR/objects), but also the ones found in alternate @@ -55,6 +61,15 @@ index file and all SHA1 references in .git/refs/* as heads. objects that triggers this check, but it is recommended to check new projects with this flag. +--verbose:: + Be chatty. + +--lost-found:: + Write dangling objects into .git/lost-found/commit/ or + .git/lost-found/other/, depending on type. If the object is + a blob, the contents are written into the file, rather than + its object name. + 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 @@ -136,4 +151,3 @@ Documentation by David Greaves, Junio C Hamano and the git-list