]> git.ipfire.org Git - thirdparty/git.git/commit
t6428: new test for SKIP_WORKTREE handling and conflicts
authorElijah Newren <newren@gmail.com>
Sat, 20 Mar 2021 00:03:49 +0000 (00:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Mar 2021 19:35:40 +0000 (12:35 -0700)
commit8ddc20b8969120329a9369e19816aa9088c9550e
tree35a60e9c8f9690ae3cc731af6fe8c50d19363af5
parent3639dfb3a8ea6935a7863fcbcc1c7a6c9104980e
t6428: new test for SKIP_WORKTREE handling and conflicts

If there is a conflict during a merge for a SKIP_WORKTREE entry, we
expect that file to be written to the working copy and have the
SKIP_WORKTREE bit cleared in the index.  If the user had manually
created a file in the working tree despite SKIP_WORKTREE being set, we
do not want to clobber their changes to that file, but want to move it
out of the way.  Add tests that check for these behaviors.

Signed-off-by: Elijah Newren <newren@gmail.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6428-merge-conflicts-sparse.sh [new file with mode: 0755]