summaryrefslogtreecommitdiff
path: root/Documentation/git-fsck.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-02-28 14:55:39 -0800
committerJunio C Hamano <gitster@pobox.com>2012-02-28 14:55:39 -0800
commitc6a13b2c86b71cb25011094ff2dee3d7769991a2 (patch)
tree79877bce418a0b108d847a1c49779194b97c5345 /Documentation/git-fsck.txt
parentba998d33e22d6fce4445af5834dc227609672501 (diff)
downloadgit-c6a13b2c86b71cb25011094ff2dee3d7769991a2.tar.gz
fsck: --no-dangling omits "dangling object" informationcb/fsck-squelch-dangling
The default output from "fsck" is often overwhelmed by informational message on dangling objects, especially if you do not repack often, and a real error can easily be buried. Add "--no-dangling" option to omit them, and update the user manual to demonstrate its use. Based on a patch by Clemens Buchacher, but reverted the part to change the default to --no-dangling, which is unsuitable for the first patch. The usual three-step procedure to break the backward compatibility over time needs to happen on top of this, if we were to go in that direction. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-fsck.txt')
-rw-r--r--Documentation/git-fsck.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-fsck.txt b/Documentation/git-fsck.txt
index 6c47395ad2..47e2f19218 100644
--- a/Documentation/git-fsck.txt
+++ b/Documentation/git-fsck.txt
@@ -11,7 +11,7 @@ SYNOPSIS
[verse]
'git fsck' [--tags] [--root] [--unreachable] [--cache] [--no-reflogs]
[--[no-]full] [--strict] [--verbose] [--lost-found]
- [--[no-]progress] [<object>*]
+ [--[no-]dangling] [--[no-]progress] [<object>*]
DESCRIPTION
-----------
@@ -30,6 +30,11 @@ index file, all SHA1 references in .git/refs/*, and all reflogs (unless
Print out objects that exist but that aren't reachable from any
of the reference nodes.
+--dangling::
+--no-dangling::
+ Print objects that exist but that are never 'directly' used (default).
+ `--no-dangling` can be used to squech this information from the output.
+
--root::
Report root nodes.