3 test_description
='hunk edit with "commit -p -m"'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'setup (initial)' '
14 test_expect_success
'edit hunk "commit -p -m message"' '
15 test_when_finished "rm -f editor_was_started" &&
16 rm -f editor_was_started &&
18 echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit2 file &&
19 test -r editor_was_started
22 test_expect_success
'edit hunk "commit --dry-run -p -m message"' '
23 test_when_finished "rm -f editor_was_started" &&
24 rm -f editor_was_started &&
26 echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit3 file &&
27 test -r editor_was_started