Skip to content

Commit 8c83968

Browse files
jrngitster
authored andcommitted
Describe various forms of "be quiet" using OPT__QUIET
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 76946b7 commit 8c83968

File tree

10 files changed

+14
-11
lines changed

10 files changed

+14
-11
lines changed

builtin/checkout-index.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
218218
OPT_BOOLEAN('a', "all", &all,
219219
"checks out all files in the index"),
220220
OPT__FORCE(&force, "forces overwrite of existing files"),
221-
OPT__QUIET(&quiet, "be quiet"),
221+
OPT__QUIET(&quiet,
222+
"no warning for existing files and files not in index"),
222223
OPT_BOOLEAN('n', "no-create", &not_new,
223224
"don't checkout new files"),
224225
{ OPTION_CALLBACK, 'u', "index", &newfd, NULL,

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
686686
int patch_mode = 0;
687687
int dwim_new_local_branch = 1;
688688
struct option options[] = {
689-
OPT__QUIET(&opts.quiet, "be quiet"),
689+
OPT__QUIET(&opts.quiet, "suppress progress reporting"),
690690
OPT_STRING('b', NULL, &opts.new_branch, "branch",
691691
"create and checkout a new branch"),
692692
OPT_STRING('B', NULL, &opts.new_branch_force, "branch",

builtin/clean.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
4848
const char *qname;
4949
char *seen = NULL;
5050
struct option options[] = {
51-
OPT__QUIET(&quiet, "be quiet"),
51+
OPT__QUIET(&quiet, "do not print names of files removed"),
5252
OPT__DRY_RUN(&show_only, "dry run"),
5353
OPT__FORCE(&force, "force"),
5454
OPT_BOOLEAN('d', NULL, &remove_directories,

builtin/commit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ static int opt_parse_m(const struct option *opt, const char *arg, int unset)
114114
}
115115

116116
static struct option builtin_commit_options[] = {
117-
OPT__QUIET(&quiet, "be quiet"),
118-
OPT__VERBOSE(&verbose, "be verbose"),
117+
OPT__QUIET(&quiet, "suppress summary after successful commit"),
118+
OPT__VERBOSE(&verbose, "show diff in commit message template"),
119119

120120
OPT_GROUP("Commit message options"),
121121
OPT_FILENAME('F', "file", &logfile, "read log from file"),

builtin/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
180180
char buf[80];
181181

182182
struct option builtin_gc_options[] = {
183-
OPT__QUIET(&quiet, "be quiet"),
183+
OPT__QUIET(&quiet, "suppress progress reporting"),
184184
{ OPTION_STRING, 0, "prune", &prune_expire, "date",
185185
"prune unreferenced objects",
186186
PARSE_OPT_OPTARG, NULL, (intptr_t)prune_expire },

builtin/merge-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ int cmd_merge_file(int argc, const char **argv, const char *prefix)
3939
XDL_MERGE_FAVOR_UNION),
4040
OPT_INTEGER(0, "marker-size", &xmp.marker_size,
4141
"for conflicts, use this marker size"),
42-
OPT__QUIET(&quiet, "be quiet"),
42+
OPT__QUIET(&quiet, "do not warn about conflicts"),
4343
OPT_CALLBACK('L', NULL, names, "name",
4444
"set labels for file1/orig_file/file2", &label_cb),
4545
OPT_END(),

builtin/reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
243243
struct commit *commit;
244244
char *reflog_action, msg[1024];
245245
const struct option options[] = {
246-
OPT__QUIET(&quiet, "be quiet"),
246+
OPT__QUIET(&quiet, "be quiet, only report errors"),
247247
OPT_SET_INT(0, "mixed", &reset_type,
248248
"reset HEAD and index", MIXED),
249249
OPT_SET_INT(0, "soft", &reset_type, "reset only HEAD", SOFT),

builtin/rm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int ignore_unmatch = 0;
140140

141141
static struct option builtin_rm_options[] = {
142142
OPT__DRY_RUN(&show_only, "dry run"),
143-
OPT__QUIET(&quiet, "be quiet"),
143+
OPT__QUIET(&quiet, "do not list removed files"),
144144
OPT_BOOLEAN( 0 , "cached", &index_only, "only remove from the index"),
145145
OPT__FORCE(&force, "override the up-to-date check"),
146146
OPT_BOOLEAN('r', NULL, &recursive, "allow recursive removal"),

builtin/show-ref.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ static const struct option show_ref_options[] = {
193193
"only show SHA1 hash using <n> digits",
194194
PARSE_OPT_OPTARG, &hash_callback },
195195
OPT__ABBREV(&abbrev),
196-
OPT__QUIET(&quiet, "be quiet"),
196+
OPT__QUIET(&quiet,
197+
"do not print results to stdout (useful with --verify)"),
197198
{ OPTION_CALLBACK, 0, "exclude-existing", &exclude_existing_arg,
198199
"pattern", "show refs from stdin that aren't in local repository",
199200
PARSE_OPT_OPTARG | PARSE_OPT_NONEG, exclude_existing_callback },

builtin/symbolic-ref.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ int cmd_symbolic_ref(int argc, const char **argv, const char *prefix)
3030
int quiet = 0;
3131
const char *msg = NULL;
3232
struct option options[] = {
33-
OPT__QUIET(&quiet, "be quiet"),
33+
OPT__QUIET(&quiet,
34+
"suppress error message for non-symbolic (detached) refs"),
3435
OPT_STRING('m', NULL, &msg, "reason", "reason of the update"),
3536
OPT_END(),
3637
};

0 commit comments

Comments
 (0)