Merge branch 'nd/rebase-show-current-patch'
The new "--show-current-patch" option gives an end-user facing way to get the diff being applied when "git rebase" (and "git am") stops with a conflict. * nd/rebase-show-current-patch: rebase: introduce and use pseudo-ref REBASE_HEAD rebase: add --show-current-patch am: add --show-current-patch
This commit is contained in:
@ -662,6 +662,11 @@ test_expect_success 'am pauses on conflict' '
|
||||
test -d .git/rebase-apply
|
||||
'
|
||||
|
||||
test_expect_success 'am --show-current-patch' '
|
||||
git am --show-current-patch >actual.patch &&
|
||||
test_cmp .git/rebase-apply/0001 actual.patch
|
||||
'
|
||||
|
||||
test_expect_success 'am --skip works' '
|
||||
echo goodbye >expected &&
|
||||
git am --skip &&
|
||||
|
Reference in New Issue
Block a user