{"thread":{"id":"21831","subject":"[PATCH] General --quiet improvements","startedAt":"2009-12-02T21:28:40Z","lastAt":"2009-12-02T21:28:40Z","messageCount":1,"participants":["Felipe Contreras"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"129071","messageId":"1259789320-31504-1-git-send-email-felipe.contreras@gmail.com","threadId":"21831","inReplyTo":null,"subject":"[PATCH] General --quiet improvements","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2009-12-02T21:28:40Z","receivedAt":"2009-12-02T21:28:40Z","isPatch":true,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"'git reset' is missing --quiet, and 'git gc' is not using OPT__QUIET.\nLet's fix that.\n\nSigned-off-by: Felipe Contreras <felipe.contreras@gmail.com>\n---\n Documentation/git-reset.txt |    1 +\n builtin-gc.c                |    2 +-\n builtin-reset.c             |    3 +--\n 3 files changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt\nindex 2d27e40..9df6de2 100644\n--- a/Documentation/git-reset.txt\n+++ b/Documentation/git-reset.txt\n@@ -62,6 +62,7 @@ This means that `git reset -p` is the opposite of `git add -p` (see\n linkgit:git-add[1]).\n \n -q::\n+--quiet::\n \tBe quiet, only report errors.\n \n <commit>::\ndiff --git a/builtin-gc.c b/builtin-gc.c\nindex 093517e..c304638 100644\n--- a/builtin-gc.c\n+++ b/builtin-gc.c\n@@ -180,12 +180,12 @@ int cmd_gc(int argc, const char **argv, const char *prefix)\n \tchar buf[80];\n \n \tstruct option builtin_gc_options[] = {\n+\t\tOPT__QUIET(&quiet),\n \t\t{ OPTION_STRING, 0, \"prune\", &prune_expire, \"date\",\n \t\t\t\"prune unreferenced objects\",\n \t\t\tPARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire },\n \t\tOPT_BOOLEAN(0, \"aggressive\", &aggressive, \"be more thorough (increased runtime)\"),\n \t\tOPT_BOOLEAN(0, \"auto\", &auto_gc, \"enable auto-gc mode\"),\n-\t\tOPT_BOOLEAN('q', \"quiet\", &quiet, \"suppress progress reports\"),\n \t\tOPT_END()\n \t};\n \ndiff --git a/builtin-reset.c b/builtin-reset.c\nindex 73e6022..25b38ce 100644\n--- a/builtin-reset.c\n+++ b/builtin-reset.c\n@@ -202,6 +202,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)\n \tstruct commit *commit;\n \tchar *reflog_action, msg[1024];\n \tconst struct option options[] = {\n+\t\tOPT__QUIET(&quiet),\n \t\tOPT_SET_INT(0, \"mixed\", &reset_type,\n \t\t\t\t\t\t\"reset HEAD and index\", MIXED),\n \t\tOPT_SET_INT(0, \"soft\", &reset_type, \"reset only HEAD\", SOFT),\n@@ -209,8 +210,6 @@ int cmd_reset(int argc, const char **argv, const char *prefix)\n \t\t\t\t\"reset HEAD, index and working tree\", HARD),\n \t\tOPT_SET_INT(0, \"merge\", &reset_type,\n \t\t\t\t\"reset HEAD, index and working tree\", MERGE),\n-\t\tOPT_BOOLEAN('q', NULL, &quiet,\n-\t\t\t\t\"disable showing new HEAD in hard reset and progress message\"),\n \t\tOPT_BOOLEAN('p', \"patch\", &patch_mode, \"select hunks interactively\"),\n \t\tOPT_END()\n \t};\n-- \n1.6.6.rc0.63.g0471c\n"}]}