t6044: add more testcases with staged changes before a merge is invoked
authorElijah Newren <newren@gmail.com>
Sun, 1 Jul 2018 01:25:01 +0000 (18:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Jul 2018 16:38:36 +0000 (09:38 -0700)
commit7f5271fa1584d99fb3c83f308f35295ed78c8b8b
treedc14c7771369f587d6e0c20f47f925840f25b49f
parente1f8694f3394caf3d3cd57c6c7593f0b0cdb1f9e
t6044: add more testcases with staged changes before a merge is invoked

According to Documentation/git-merge.txt,

    ...[merge will] abort if there are any changes registered in the index
    relative to the `HEAD` commit.  (One exception is when the changed
    index entries are in the state that would result from the merge
    already.)

Add some tests showing that this exception, while it does accurately state
what would be a safe condition under which we could allow the merge to
proceed, is not what is actually implemented.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6044-merge-unrelated-index-changes.sh