• Jens Lehmann's avatar
    stash: add t3906 for submodule updates · da7fe3fb
    Jens Lehmann authored
    Test that the stash apply command updates the work tree as expected for
    changes which don't result in conflicts. To make that work add a helper
    function that uses read-tree to apply the changes of the target commit
    to the work tree, then stashes these changes and at last applies that
    stash.
    
    Implement the KNOWN_FAILURE_STASH_DOES_IGNORE_SUBMODULE_CHANGES switch
    and reuse two other already present switches to expect the known
    failure that stash does ignore submodule changes.
    Signed-off-by: default avatarJens Lehmann <Jens.Lehmann@web.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    da7fe3fb
lib-submodule-update.sh 22.9 KB