merge: enable progress reporting for rename detection
The user can enable or disable it explicitly with the new --progress, but it defaults to checking isatty(2). This works only with merge-recursive and subtree. In theory we could pass a progress flag to other strategies, but none of them support progress at this point, so let's wait until they grow such a feature before worrying about propagating it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
3ac942d42e
commit
99bfc6691d
@ -441,6 +441,7 @@ static struct string_list *get_renames(struct merge_options *o,
|
||||
o->diff_rename_limit >= 0 ? o->diff_rename_limit :
|
||||
1000;
|
||||
opts.rename_score = o->rename_score;
|
||||
opts.show_rename_progress = o->show_rename_progress;
|
||||
opts.output_format = DIFF_FORMAT_NO_OUTPUT;
|
||||
if (diff_setup_done(&opts) < 0)
|
||||
die("diff setup failed");
|
||||
|
Reference in New Issue
Block a user