Skip to content

Commit 815f7f4

Browse files
committed
fixup??? built-in add -p: implement the '/' ("search regex") command
This is necessary as long as `kt/add-i-progress` has not made it into `maint`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 62ed4ee commit 815f7f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t3701-add-interactive.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ test_expect_success 'goto hunk' '
432432
test_expect_success 'navigate to hunk via regex' '
433433
test_when_finished "git reset" &&
434434
tr _ " " >expect <<-EOF &&
435-
(2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]? @@ -1,2 +1,3 @@
435+
Stage this hunk [y,n,q,a,d,K,g,/,e,?]? @@ -1,2 +1,3 @@
436436
_10
437437
+15
438438
_20
439-
(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]?_
439+
Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]?_
440440
EOF
441441
test_write_lines s y /1,2 | git add -p >actual &&
442442
tail -n 5 <actual >actual.trimmed &&

0 commit comments

Comments
 (0)