]> git.ipfire.org Git - thirdparty/git.git/commit
checkout/restore: add basic tests for --merge
authorJunio C Hamano <gitster@pobox.com>
Mon, 31 Jul 2023 22:44:08 +0000 (15:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Jul 2023 23:13:49 +0000 (16:13 -0700)
commited3789f2f0ab8b8d5e325e47f0caf02b6bd9edfc
tree2923c250df14404896089bde6ffa990ea276d66c
parent54f98fee5069f50c6e96687504b82a7695c8648a
checkout/restore: add basic tests for --merge

Even though "checkout --merge -- paths" had some tests, we never
made sure it worked to recreate the conflicted state _after_ the
resolution was recorded in the index.  Also "restore --merge" did
not even have any tests.

Currently these commands use the unmerge_marked_index() interface
that cannot handle paths that have been resolved as removal, and
tests for that case are marked with test_expect_failure; these
should eventually be fixed, but not in this patch.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2070-restore.sh
t/t7201-co.sh