From a9f2adff802308481f2e638bae0c5b6e205251a3 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Fri, 14 May 2010 23:42:07 +0200 Subject: 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 Acked-by: Johan Herland Signed-off-by: Junio C Hamano --- Documentation/git-notes.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/git-notes.txt b/Documentation/git-notes.txt index 4e5113b837..0f3279257b 100644 --- a/Documentation/git-notes.txt +++ b/Documentation/git-notes.txt @@ -15,7 +15,7 @@ SYNOPSIS 'git notes' edit [] 'git notes' show [] 'git notes' remove [] -'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 ----- -- cgit v1.3-5-g9baa