aboutsummaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2010-08-06 22:28:09 +0200
committerJunio C Hamano <gitster@pobox.com>2010-08-09 10:12:50 -0700
commite93487d2f007176804e89042f9f199628e45c864 (patch)
tree18023d441bcafd9facc67c1a78d6cf7533353ff8 /builtin/notes.c
parentcf958afd8368ebce1cabb2f7ae2799306cc2de03 (diff)
downloadgit-e93487d2f007176804e89042f9f199628e45c864.tar.gz
git-e93487d2f007176804e89042f9f199628e45c864.tar.xz
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>
Diffstat (limited to 'builtin/notes.c')
-rw-r--r--builtin/notes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/notes.c b/builtin/notes.c
index 190005f3c..fbc347c9f 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -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()
};