summaryrefslogtreecommitdiff
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <johannes.sixt@telecom.at>2007-12-07 22:19:40 +0100
committerLibravatar Johannes Sixt <johannes.sixt@telecom.at>2008-06-23 13:40:18 +0200
commitea9e98c3a54d3b693367fbb8c87812b17ad95869 (patch)
treecc4abaa44db9b3067917c2d20c29929d2f9005c1 /git-add--interactive.perl
parentWindows: always chmod(, 0666) before unlink(). (diff)
downloadtgif-ea9e98c3a54d3b693367fbb8c87812b17ad95869.tar.xz
Windows: Work around misbehaved rename().
Windows's rename() is based on the MoveFile() API, which fails if the destination exists. Here we work around the problem by using MoveFileEx(). Furthermore, the posixly correct error is returned if the destination is a directory. The implementation is still slightly incomplete, however, because of the missing error code translation: We assume that the failure is due to permissions. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Diffstat (limited to 'git-add--interactive.perl')
0 files changed, 0 insertions, 0 deletions