• Show log

    Commit

  • Hash : 0ef405b3
    Author : Patrick Steinhardt
    Date : 2017-02-15T14:05:10

    checkout: do not delete directories with untracked entries
    
    If the `GIT_CHECKOUT_FORCE` flag is given to any of the `git_checkout`
    invocations, we remove files which were previously staged. But while
    doing so, we unfortunately also remove unstaged files in a directory
    which contains at least one staged file, resulting in potential data
    loss.
    
    This commit adds two tests to verify behavior.