summaryrefslogtreecommitdiff
path: root/tests/diff/binary.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-06-23 16:27:33 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-06-23 19:15:16 -0400
commit9017711143ed106ec75df8fc007e383b0c90e18e (patch)
tree06106f8927a377d38940a0485002cc069295a2c4 /tests/diff/binary.c
parent14304b0e87e92291a1265d5e692bd2d21ba59a62 (diff)
downloadlibgit2-9017711143ed106ec75df8fc007e383b0c90e18e.tar.gz
stash: save the workdir file when deleted in index
When stashing the workdir tree, examine the index as well. Using a mechanism similar to `git_diff_tree_to_workdir_with_index` allows us to determine that a file was added in the index and subsequently modified in the working directory. Without examining the index, we would erroneously believe that this file was untracked and fail to include it in the working directory tree. Use a slightly modified `git_diff_tree_to_workdir_with_index` in order to avoid some of the behavior custom to `git diff`. In particular, be sure to include the working directory side of a file when it was deleted in the index.
Diffstat (limited to 'tests/diff/binary.c')
0 files changed, 0 insertions, 0 deletions