git-add -i/-p: Change prompt separater from slash to comma
Otherwise the find command '/' soon to be introduced will be hard to see. Signed-off-by: William Pursell <bill.pursell@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
William Pursell committed
Nov 27, 2008 at 04:07 UTC
57886bc7fb9413becf4c240320d61bf641600762
1 file changed
+7
-7
git-add--interactive.perl
+7
-7
@@ -929,22 +929,22 @@ sub patch_update_file {
929
for ($i = 0; $i < $ix; $i++) {
930
if (!defined $hunk[$i]{USE}) {
931
$prev = 1;
932
- $other .= '/k';
932
+ $other .= ',k';
933
last;
934
}
935
}
936
if ($ix) {
937
- $other .= '/K';
937
+ $other .= ',K';
938
}
939
for ($i = $ix + 1; $i < $num; $i++) {
940
if (!defined $hunk[$i]{USE}) {
941
$next = 1;
942
- $other .= '/j';
942
+ $other .= ',j';
943
last;
944
}
945
}
946
if ($ix < $num - 1) {
947
- $other .= '/J';
947
+ $other .= ',J';
948
}
949
if ($num > 1) {
950
$other .= '/g';
@@ -958,13 +958,13 @@ sub patch_update_file {
958
last if (!$undecided);
959
960
if (hunk_splittable($hunk[$ix]{TEXT})) {
961
- $other .= '/s';
961
+ $other .= ',s';
962
}
963
- $other .= '/e';
963
+ $other .= ',e';
964
for (@{$hunk[$ix]{DISPLAY}}) {
965
print;
966
}
967
- print colored $prompt_color, "Stage this hunk [y/n/a/d$other/?]? ";
967
+ print colored $prompt_color, "Stage this hunk [y,n,a,d$other,?]? ";
968
my $line = <STDIN>;
969
if ($line) {
970
if ($line =~ /^y/i) {