3 test_description
='hunk edit with "commit -p -m"'
6 test_expect_success
'setup (initial)' '
12 test_expect_success
'edit hunk "commit -p -m message"' '
13 test_when_finished "rm -f editor_was_started" &&
14 rm -f editor_was_started &&
16 echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit2 file &&
17 test -r editor_was_started
20 test_expect_success
'edit hunk "commit --dry-run -p -m message"' '
21 test_when_finished "rm -f editor_was_started" &&
22 rm -f editor_was_started &&
24 echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit3 file &&
25 test -r editor_was_started