@@ -325,9 +325,9 @@ test_expect_success 'different prompts for mode change/deleted' '
325
325
git -c core.filemode=true add -p >actual &&
326
326
sed -n "s/^\(([0-9/]*) Stage .*?\).*/\1/p" actual >actual.filtered &&
327
327
cat >expect <<-\EOF &&
328
- (1/1) Stage deletion [y,n,q,a,d,?]?
329
- (1/2) Stage mode change [y,n,q,a,d,j,J,g,/,?]?
330
- (2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]?
328
+ (1/1) Stage deletion [y,n,q,a,d,p, ?]?
329
+ (1/2) Stage mode change [y,n,q,a,d,j,J,g,/,p, ?]?
330
+ (2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,p, ?]?
331
331
EOF
332
332
test_cmp expect actual.filtered
333
333
'
@@ -514,13 +514,13 @@ test_expect_success 'split hunk setup' '
514
514
test_expect_success ' goto hunk' '
515
515
test_when_finished "git reset" &&
516
516
tr _ " " >expect <<-EOF &&
517
- (2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]? + 1: -1,2 +1,3 +15
517
+ (2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,p, ?]? + 1: -1,2 +1,3 +15
518
518
_ 2: -2,4 +3,8 +21
519
519
go to which hunk? @@ -1,2 +1,3 @@
520
520
_10
521
521
+15
522
522
_20
523
- (1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]?_
523
+ (1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,p, ?]?_
524
524
EOF
525
525
test_write_lines s y g 1 | git add -p >actual &&
526
526
tail -n 7 <actual >actual.trimmed &&
@@ -530,11 +530,11 @@ test_expect_success 'goto hunk' '
530
530
test_expect_success ' navigate to hunk via regex' '
531
531
test_when_finished "git reset" &&
532
532
tr _ " " >expect <<-EOF &&
533
- (2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]? @@ -1,2 +1,3 @@
533
+ (2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,p, ?]? @@ -1,2 +1,3 @@
534
534
_10
535
535
+15
536
536
_20
537
- (1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]?_
537
+ (1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,p, ?]?_
538
538
EOF
539
539
test_write_lines s y /1,2 | git add -p >actual &&
540
540
tail -n 5 <actual >actual.trimmed &&
@@ -715,21 +715,21 @@ test_expect_success 'colors can be overridden' '
715
715
<BLUE>+<RESET><BLUE>new<RESET>
716
716
<CYAN> more-context<RESET>
717
717
<BLUE>+<RESET><BLUE>another-one<RESET>
718
- <YELLOW>(1/1) Stage this hunk [y,n,q,a,d,s,e,?]? <RESET><BOLD>Split into 2 hunks.<RESET>
718
+ <YELLOW>(1/1) Stage this hunk [y,n,q,a,d,s,e,p, ?]? <RESET><BOLD>Split into 2 hunks.<RESET>
719
719
<MAGENTA>@@ -1,3 +1,3 @@<RESET>
720
720
<CYAN> context<RESET>
721
721
<BOLD>-old<RESET>
722
722
<BLUE>+<RESET><BLUE>new<RESET>
723
723
<CYAN> more-context<RESET>
724
- <YELLOW>(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]? <RESET><MAGENTA>@@ -3 +3,2 @@<RESET>
724
+ <YELLOW>(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,p, ?]? <RESET><MAGENTA>@@ -3 +3,2 @@<RESET>
725
725
<CYAN> more-context<RESET>
726
726
<BLUE>+<RESET><BLUE>another-one<RESET>
727
- <YELLOW>(2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]? <RESET><MAGENTA>@@ -1,3 +1,3 @@<RESET>
727
+ <YELLOW>(2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,p, ?]? <RESET><MAGENTA>@@ -1,3 +1,3 @@<RESET>
728
728
<CYAN> context<RESET>
729
729
<BOLD>-old<RESET>
730
730
<BLUE>+new<RESET>
731
731
<CYAN> more-context<RESET>
732
- <YELLOW>(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]? <RESET>
732
+ <YELLOW>(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,p, ?]? <RESET>
733
733
EOF
734
734
test_cmp expect actual
735
735
'
0 commit comments