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 <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Aug 6, 2010 at 22:28 UTC
e93487d2f007176804e89042f9f199628e45c864
2 files changed
+5
-2
Documentation/git-notes.txt
+2
@@ -129,10 +129,12 @@ OPTIONS
129
is taken to be in `refs/notes/` if it is not qualified.
130
131
-n::
132
+--dry-run::
133
Do not remove anything; just report the object names whose notes
134
would be removed.
135
136
-v::
137
+--verbose::
138
Report all object names whose notes are removed.
139
140
builtin/notes.c
+3
-2
@@ -798,8 +798,9 @@ static int prune(int argc, const char **argv, const char *prefix)
798
struct notes_tree *t;
799
int show_only = 0, verbose = 0;
800
struct option options[] = {
801
- OPT_BOOLEAN('n', NULL, &show_only, "do not remove, show only"),
802
- OPT_BOOLEAN('v', NULL, &verbose, "report pruned notes"),
801
+ OPT_BOOLEAN('n', "dry-run", &show_only,
802
+ "do not remove, show only"),
803
+ OPT_BOOLEAN('v', "verbose", &verbose, "report pruned notes"),
804
OPT_END()
805
};
806