aboutsummaryrefslogtreecommitdiff
path: root/builtin-reset.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2009-12-02 23:28:40 +0200
committerJunio C Hamano <gitster@pobox.com>2009-12-03 10:08:54 -0800
commit5d2dcc423ec689ff4a6bcb83b00d5b43657b0c88 (patch)
tree57f0de15b8e4849d384e7df90568f2b50884191b /builtin-reset.c
parentb809d9cd0787e68f442c6795ec76580bb37d1a00 (diff)
downloadgit-5d2dcc423ec689ff4a6bcb83b00d5b43657b0c88.tar.gz
git-5d2dcc423ec689ff4a6bcb83b00d5b43657b0c88.tar.xz
General --quiet improvements
'git reset' is missing --quiet, and 'git gc' is not using OPT__QUIET. Let's fix that. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-reset.c')
-rw-r--r--builtin-reset.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-reset.c b/builtin-reset.c
index 73e60223d..25b38cee1 100644
--- a/builtin-reset.c
+++ b/builtin-reset.c
@@ -202,6 +202,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
struct commit *commit;
char *reflog_action, msg[1024];
const struct option options[] = {
+ OPT__QUIET(&quiet),
OPT_SET_INT(0, "mixed", &reset_type,
"reset HEAD and index", MIXED),
OPT_SET_INT(0, "soft", &reset_type, "reset only HEAD", SOFT),
@@ -209,8 +210,6 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
"reset HEAD, index and working tree", HARD),
OPT_SET_INT(0, "merge", &reset_type,
"reset HEAD, index and working tree", MERGE),
- OPT_BOOLEAN('q', NULL, &quiet,
- "disable showing new HEAD in hard reset and progress message"),
OPT_BOOLEAN('p', "patch", &patch_mode, "select hunks interactively"),
OPT_END()
};