Skip to content
  • Jens Lehmann's avatar
    stash: add t3906 for submodule updates · da7fe3fb
    Jens Lehmann authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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