diff options
| author | Edmundo Carmona Antoranz <eantoranz@gmail.com> | 2022-04-06 20:13:20 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-04-06 13:29:59 -0700 |
| commit | e5f5d7d42effb1d0d404897ac782783f742e9daa (patch) | |
| tree | f6c7fe3f53ac77de4a59ff5872c5cca5e7bd3a3e /compat/simple-ipc/ipc-unix-socket.c | |
| parent | Git 2.35.1 (diff) | |
| download | git-e5f5d7d42effb1d0d404897ac782783f742e9daa.tar.gz git-e5f5d7d42effb1d0d404897ac782783f742e9daa.zip | |
blame: report correct number of lines in progress when using ranges
When using ranges, use the range sizes as the limit for progress
instead of the size of the full file.
Before:
$ git blame --progress builtin/blame.c > /dev/null
Blaming lines: 100% (1210/1210), done.
$ git blame --progress -L 100,120 -L 200,300 builtin/blame.c > /dev/null
Blaming lines: 10% (122/1210), done.
$
After:
$ ./git blame --progress builtin/blame.c > /dev/null
Blaming lines: 100% (1210/1210), done.
$ ./git blame --progress -L 100,120 -L 200,300 builtin/blame.c > /dev/null
Blaming lines: 100% (122/122), done.
$
Signed-off-by: Edmundo Carmona Antoranz <eantoranz@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/simple-ipc/ipc-unix-socket.c')
0 files changed, 0 insertions, 0 deletions
