Skip to content

Commit b165fac

Browse files
pcloudsgitster
authored andcommitted
unpack-trees: rename "gently" flag to "quiet"
The gently flag was added in 17e4642 (Add flag to make unpack_trees() not print errors. - 2008-02-07) to suppress error messages. The name "gently" does not quite express that. Granted, being quiet is gentle but it could mean not performing some other actions. Rename the flag to "quiet" to be more on point. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 191e9d2 commit b165fac

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static int merge_working_tree(const struct checkout_opts *opts,
700700
topts.initial_checkout = is_cache_unborn();
701701
topts.update = 1;
702702
topts.merge = 1;
703-
topts.gently = opts->merge && old_branch_info->commit;
703+
topts.quiet = opts->merge && old_branch_info->commit;
704704
topts.verbose_update = opts->show_progress;
705705
topts.fn = twoway_merge;
706706
if (opts->overwrite_ignore) {

unpack-trees.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static int add_rejected_path(struct unpack_trees_options *o,
219219
enum unpack_trees_error_types e,
220220
const char *path)
221221
{
222-
if (o->gently)
222+
if (o->quiet)
223223
return -1;
224224

225225
if (!o->show_all_errors)
@@ -1042,7 +1042,7 @@ static int unpack_nondirectories(int n, unsigned long mask,
10421042
static int unpack_failed(struct unpack_trees_options *o, const char *message)
10431043
{
10441044
discard_index(&o->result);
1045-
if (!o->gently && !o->exiting_early) {
1045+
if (!o->quiet && !o->exiting_early) {
10461046
if (message)
10471047
return error("%s", message);
10481048
return -1;
@@ -2343,7 +2343,7 @@ int bind_merge(const struct cache_entry * const *src,
23432343
return error("Cannot do a bind merge of %d trees",
23442344
o->merge_size);
23452345
if (a && old)
2346-
return o->gently ? -1 :
2346+
return o->quiet ? -1 :
23472347
error(ERRORMSG(o, ERROR_BIND_OVERLAP),
23482348
super_prefixed(a->name),
23492349
super_prefixed(old->name));

unpack-trees.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct unpack_trees_options {
5656
diff_index_cached,
5757
debug_unpack,
5858
skip_sparse_checkout,
59-
gently,
59+
quiet,
6060
exiting_early,
6161
show_all_errors,
6262
dry_run;

0 commit comments

Comments
 (0)