diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-10-11 14:24:48 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-10-11 14:24:48 +0900 |
| commit | f0d407e6ae8dfe89683d86ebaba5f6f08959e8b3 (patch) | |
| tree | 1ec74f3a8679cb8f59d7901a7042511d739ef81c /git-add--interactive.perl | |
| parent | 66102cfad839135b89ec7e4ccd253c8d7ce627a7 (diff) | |
| parent | 8085050ab4e29f442f305e338e6eea750540190e (diff) | |
| download | git-f0d407e6ae8dfe89683d86ebaba5f6f08959e8b3.tar.xz | |
Merge branch 'kt/add-i-progress'
"git add -i" has been taught to show the total number of hunks and
the hunks that has been processed so far when showing prompts.
* kt/add-i-progress:
add -i: show progress counter in the prompt
Diffstat (limited to 'git-add--interactive.perl')
| -rwxr-xr-x | git-add--interactive.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-add--interactive.perl b/git-add--interactive.perl index c20ae9e210..52659bb74c 100755 --- a/git-add--interactive.perl +++ b/git-add--interactive.perl @@ -1541,7 +1541,7 @@ sub patch_update_file { for (@{$hunk[$ix]{DISPLAY}}) { print; } - print colored $prompt_color, + print colored $prompt_color, "(", ($ix+1), "/$num) ", sprintf(__($patch_update_prompt_modes{$patch_mode}{$hunk[$ix]{TYPE}}), $other); my $line = prompt_single_character; |
