diff options
author | Kunal Tyagi <tyagi.kunal@live.com> | 2019-09-30 05:22:59 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-03 22:12:19 (GMT) |
commit | 8085050ab4e29f442f305e338e6eea750540190e (patch) | |
tree | 67d96abe4935ae517aeaf814baff1f7430aa47cf /git-add--interactive.perl | |
parent | bc12974a897308fd3254cf0cc90319078fe45eea (diff) | |
download | git-8085050ab4e29f442f305e338e6eea750540190e.zip git-8085050ab4e29f442f305e338e6eea750540190e.tar.gz git-8085050ab4e29f442f305e338e6eea750540190e.tar.bz2 |
add -i: show progress counter in the prompt
Report the current hunk count and total number of hunks for the
current file in the prompt. Also adjust the expected output in
some tests to match.
Signed-off-by: Kunal Tyagi <tyagi.kunal@live.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 c20ae9e..52659bb 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; |