Skip to content

Commit

Permalink
Merge branch 'fc/opt-quiet-gc-reset'
Browse files Browse the repository at this point in the history
* fc/opt-quiet-gc-reset:
  General --quiet improvements
  • Loading branch information
Junio C Hamano committed Jan 10, 2010
2 parents 83b10ca + 5d2dcc4 commit ed7e9ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Documentation/git-reset.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ This means that `git reset -p` is the opposite of `git add -p` (see
linkgit:git-add[1]).

-q::
--quiet::
Be quiet, only report errors.

<commit>::
Expand Down
2 changes: 1 addition & 1 deletion builtin-gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
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()
};

Expand Down
3 changes: 1 addition & 2 deletions builtin-reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,14 @@ 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),
OPT_SET_INT(0, "hard", &reset_type,
"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()
};
Expand Down

0 comments on commit ed7e9ed

Please sign in to comment.