summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b809d9c)
raw | patch | inline | side by side (parent: b809d9c)
author | Felipe Contreras <felipe.contreras@gmail.com> | |
Wed, 2 Dec 2009 21:28:40 +0000 (23:28 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 3 Dec 2009 18:08:54 +0000 (10:08 -0800) |
'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>
Let's fix that.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-reset.txt | patch | blob | history | |
builtin-gc.c | patch | blob | history | |
builtin-reset.c | patch | blob | history |
index 2d27e405a39c77f1a7d7507db2f063a4819bec47..9df6de2e7dcdfa8f6629e13d5f5768787fccff66 100644 (file)
linkgit:git-add[1]).
-q::
+--quiet::
Be quiet, only report errors.
<commit>::
diff --git a/builtin-gc.c b/builtin-gc.c
index 093517e390044055039b9f4e58132c73d17b741d..c304638b7845601f184149d3c48cbc1ea1e195f5 100644 (file)
--- a/builtin-gc.c
+++ b/builtin-gc.c
char buf[80];
struct option builtin_gc_options[] = {
+ OPT__QUIET(&quiet),
{ OPTION_STRING, 0, "prune", &prune_expire, "date",
"prune unreferenced objects",
PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire },
OPT_BOOLEAN(0, "aggressive", &aggressive, "be more thorough (increased runtime)"),
OPT_BOOLEAN(0, "auto", &auto_gc, "enable auto-gc mode"),
- OPT_BOOLEAN('q', "quiet", &quiet, "suppress progress reports"),
OPT_END()
};
diff --git a/builtin-reset.c b/builtin-reset.c
index 73e60223db844ee2445aff0b2253f0f21e8a5bef..25b38cee187f2d7473d25bbc462d4d30ec7266f2 100644 (file)
--- a/builtin-reset.c
+++ b/builtin-reset.c
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),
"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()
};