From: Junio C Hamano Date: Tue, 19 Dec 2017 19:33:55 +0000 (-0800) Subject: Merge branch 'en/rename-progress' X-Git-Tag: v2.16.0-rc0~50 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/646685460c26d56b149da91544e76150119d9c9b Merge branch 'en/rename-progress' Historically, the diff machinery for rename detection had a hardcoded limit of 32k paths; this is being lifted to allow users trade cycles with a (possibly) easier to read result. * en/rename-progress: diffcore-rename: make diff-tree -l0 mean -l sequencer: show rename progress during cherry picks diff: remove silent clamp of renameLimit progress: fix progress meters when dealing with lots of work sequencer: warn when internal merge may be suboptimal due to renameLimit --- 646685460c26d56b149da91544e76150119d9c9b diff --cc progress.c index 5f87f4568f,edb97b1791..5a99c9fbf0 --- a/progress.c +++ b/progress.c @@@ -30,10 -30,11 +30,10 @@@ struct throughput struct progress { const char *title; - int last_value; - unsigned total; + uint64_t last_value; + uint64_t total; unsigned last_percent; unsigned delay; - unsigned delayed_percent_threshold; struct throughput *throughput; uint64_t start_ns; }; @@@ -192,8 -206,8 +193,8 @@@ int display_progress(struct progress *p return progress ? display(progress, n, NULL) : 0; } - static struct progress *start_progress_delay(const char *title, unsigned total, + static struct progress *start_progress_delay(const char *title, uint64_t total, - unsigned percent_threshold, unsigned delay) + unsigned delay) { struct progress *progress = malloc(sizeof(*progress)); if (!progress) { @@@ -213,14 -228,14 +214,14 @@@ return progress; } - struct progress *start_delayed_progress(const char *title, unsigned total) + struct progress *start_delayed_progress(const char *title, uint64_t total) { - return start_progress_delay(title, total, 0, 2); + return start_progress_delay(title, total, 2); } - struct progress *start_progress(const char *title, unsigned total) + struct progress *start_progress(const char *title, uint64_t total) { - return start_progress_delay(title, total, 0, 0); + return start_progress_delay(title, total, 0); } void stop_progress(struct progress **p_progress)