{"thread":{"id":"24651","subject":"[PATCH] notes: allow --dry-run for -n and --verbose for -v","startedAt":"2010-08-06T20:28:09Z","lastAt":"2010-08-06T20:28:09Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"147341","messageId":"4C5C7059.10203@lsrfire.ath.cx","threadId":"24651","inReplyTo":null,"subject":"[PATCH] notes: allow --dry-run for -n and --verbose for -v","fromName":"René Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2010-08-06T20:28:09Z","receivedAt":"2010-08-06T20:28:09Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"For consistency with other git commands, let the prune subcommand of\ngit notes accept the long options --dry-run and --verbose for the\nrespective short ones -n and -v.\n\nSigned-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>\n---\n Documentation/git-notes.txt |    2 ++\n builtin/notes.c             |    5 +++--\n 2 files changed, 5 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-notes.txt b/Documentation/git-notes.txt\nindex 5540af5..2981d8c 100644\n--- a/Documentation/git-notes.txt\n+++ b/Documentation/git-notes.txt\n@@ -129,10 +129,12 @@ OPTIONS\n \tis taken to be in `refs/notes/` if it is not qualified.\n \n -n::\n+--dry-run::\n \tDo not remove anything; just report the object names whose notes\n \twould be removed.\n \n -v::\n+--verbose::\n \tReport all object names whose notes are removed.\n \n \ndiff --git a/builtin/notes.c b/builtin/notes.c\nindex 190005f..fbc347c 100644\n--- a/builtin/notes.c\n+++ b/builtin/notes.c\n@@ -798,8 +798,9 @@ static int prune(int argc, const char **argv, const char *prefix)\n \tstruct notes_tree *t;\n \tint show_only = 0, verbose = 0;\n \tstruct option options[] = {\n-\t\tOPT_BOOLEAN('n', NULL, &show_only, \"do not remove, show only\"),\n-\t\tOPT_BOOLEAN('v', NULL, &verbose, \"report pruned notes\"),\n+\t\tOPT_BOOLEAN('n', \"dry-run\", &show_only,\n+\t\t\t    \"do not remove, show only\"),\n+\t\tOPT_BOOLEAN('v', \"verbose\", &verbose, \"report pruned notes\"),\n \t\tOPT_END()\n \t};\n \n-- \n1.7.2\n"}]}