notes: allow --dry-run for -n and --verbose for -v
PATCH 1/1 notes: allow --dry-run for -n and --verbose for -v
For consistency with other git commands, let the prune subcommand of git notes accept the long options --dry-run and --verbose for the respective short ones -n and -v.
Signed-off-by Rene Scharfe <[email protected]>
--- Documentation/git-notes.txt | 2 ++ builtin/notes.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-)
Documentation/git-notes.txt +2 -0
@@ -129,10 +129,12 @@ OPTIONS is taken to be in `refs/notes/` if it is not qualified. -n:: +--dry-run:: Do not remove anything; just report the object names whose notes would be removed. -v:: +--verbose:: Report all object names whose notes are removed.
builtin/notes.c +3 -2
@@ -798,8 +798,9 @@ static int prune(int argc, const char **argv, const char *prefix)struct notes_tree *t;int show_only =0 , verbose =0 ;struct option options[] = { -OPT_BOOLEAN ('n' ,NULL , &show_only,"do not remove, show only" ), -OPT_BOOLEAN ('v' ,NULL , &verbose,"report pruned notes" ), +OPT_BOOLEAN ('n' ,"dry-run" , &show_only, +"do not remove, show only" ), +OPT_BOOLEAN ('v' ,"verbose" , &verbose,"report pruned notes" ),OPT_END () };
Signature · 1 line
1.7.2