summaryrefslogtreecommitdiff
path: root/utf8.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-02-19 17:58:58 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2007-02-19 18:44:21 -0800
commitaea1945744214bf84908586af8be1c098a6f346d (patch)
tree3a984cf1901e2f888feca1de255517c526531bf0 /utf8.h
parentTeach 'git apply' to look at $HOME/.gitconfig even outside of a repository (diff)
downloadtgif-aea1945744214bf84908586af8be1c098a6f346d.tar.xz
git-apply: do not lose cwd when run from a subdirectory.
When a patch modifies (not deletes) the last file in a directory, because we treat a modification just as deletion followed by creation, and deleting the last file in a directory automatically rmdir(2)'s that directory, we ended up removing the directory, which can potentially be the cwd, and then recreating the same directory to create the patch result. Avoid the rmdir step when remove_file() is called only because we are replacing it with the result by later calling create_file(). Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'utf8.h')
0 files changed, 0 insertions, 0 deletions