Skip to content

Commit 57886bc

Browse files
wrpgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2ea3c17 commit 57886bc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

git-add--interactive.perl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -929,22 +929,22 @@ sub patch_update_file {
929929
for ($i = 0; $i < $ix; $i++) {
930930
if (!defined $hunk[$i]{USE}) {
931931
$prev = 1;
932-
$other .= '/k';
932+
$other .= ',k';
933933
last;
934934
}
935935
}
936936
if ($ix) {
937-
$other .= '/K';
937+
$other .= ',K';
938938
}
939939
for ($i = $ix + 1; $i < $num; $i++) {
940940
if (!defined $hunk[$i]{USE}) {
941941
$next = 1;
942-
$other .= '/j';
942+
$other .= ',j';
943943
last;
944944
}
945945
}
946946
if ($ix < $num - 1) {
947-
$other .= '/J';
947+
$other .= ',J';
948948
}
949949
if ($num > 1) {
950950
$other .= '/g';
@@ -958,13 +958,13 @@ sub patch_update_file {
958958
last if (!$undecided);
959959

960960
if (hunk_splittable($hunk[$ix]{TEXT})) {
961-
$other .= '/s';
961+
$other .= ',s';
962962
}
963-
$other .= '/e';
963+
$other .= ',e';
964964
for (@{$hunk[$ix]{DISPLAY}}) {
965965
print;
966966
}
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,?]? ";
968968
my $line = <STDIN>;
969969
if ($line) {
970970
if ($line =~ /^y/i) {

0 commit comments

Comments
 (0)