aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-notes.txt
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2010-05-14 23:42:07 +0200
committerJunio C Hamano <gitster@pobox.com>2010-05-19 23:57:18 -0700
commita9f2adff802308481f2e638bae0c5b6e205251a3 (patch)
treed07556227fcb7ff083ab7032751b247052c6a9d2 /Documentation/git-notes.txt
parent0e4607c09d72ada4942ea49298dba83ec4145892 (diff)
downloadgit-a9f2adff802308481f2e638bae0c5b6e205251a3.tar.gz
git-a9f2adff802308481f2e638bae0c5b6e205251a3.tar.xz
notes: dry-run and verbose options for prune
Introduce -n and -v options for "git notes prune" in complete analogy to "git prune" so that one can check for dangling notes easily. The output is a list of names of objects whose notes would be resp. are removed so that one can check the object ("git show sha1") as well as the note ("git notes show sha1"). Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Acked-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-notes.txt')
-rw-r--r--Documentation/git-notes.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/git-notes.txt b/Documentation/git-notes.txt
index 4e5113b83..0f3279257 100644
--- a/Documentation/git-notes.txt
+++ b/Documentation/git-notes.txt
@@ -15,7 +15,7 @@ SYNOPSIS
'git notes' edit [<object>]
'git notes' show [<object>]
'git notes' remove [<object>]
-'git notes' prune
+'git notes' prune [-n | -v]
DESCRIPTION
@@ -121,6 +121,13 @@ OPTIONS
GIT_NOTES_REF and the "core.notesRef" configuration. The ref
is taken to be in `refs/notes/` if it is not qualified.
+-n::
+ Do not remove anything; just report the object names whose notes
+ would be removed.
+
+-v::
+ Report all object names whose notes are removed.
+
NOTES
-----