]>
git.ipfire.org Git - thirdparty/git.git/blob - t/t7514-commit-patch.sh
3 test_description
='hunk edit with "commit -p -m"'
6 if ! test_have_prereq PERL
8 skip_all
="skipping '$test_description' tests, perl not available"
12 test_expect_success
'setup (initial)' '
18 test_expect_success
'edit hunk "commit -p -m message"' '
19 test_when_finished "rm -f editor_was_started" &&
20 rm -f editor_was_started &&
22 echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit2 file &&
23 test -r editor_was_started
26 test_expect_success
'edit hunk "commit --dry-run -p -m message"' '
27 test_when_finished "rm -f editor_was_started" &&
28 rm -f editor_was_started &&
30 echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit3 file &&
31 test -r editor_was_started