Skip to content

Commit 1b005eb

Browse files
committed
fixup??? built-in add -p: implement the 'g' ("goto") 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 a6eab49 commit 1b005eb

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
@@ -416,13 +416,13 @@ test_expect_success 'split hunk setup' '
416416
test_expect_success 'goto hunk' '
417417
test_when_finished "git reset" &&
418418
tr _ " " >expect <<-EOF &&
419-
(2/2) Stage this hunk [y,n,q,a,d,K,g,/,e,?]? + 1: -1,2 +1,3 +15
419+
Stage this hunk [y,n,q,a,d,K,g,/,e,?]? + 1: -1,2 +1,3 +15
420420
_ 2: -2,4 +3,8 +21
421421
go to which hunk? @@ -1,2 +1,3 @@
422422
_10
423423
+15
424424
_20
425-
(1/2) Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]?_
425+
Stage this hunk [y,n,q,a,d,j,J,g,/,e,?]?_
426426
EOF
427427
test_write_lines s y g 1 | git add -p >actual &&
428428
tail -n 7 <actual >actual.trimmed &&

0 commit comments

Comments
 (0)