author | Peter Collingbourne <peter@pcc.me.uk> | |
Fri, 26 Mar 2010 15:25:34 +0000 (15:25 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 28 Mar 2010 16:53:04 +0000 (09:53 -0700) | ||
commit | 80d706afed6c6c6fb3ac9c168a6a958244405b45 | |
tree | 18687c3c32ff6cd9a56ec42d1e46413d1ac8ed35 | tree | snapshot |
parent | d1723296af67e6bbadf6e73cd1e921aefafe491f | commit | diff |
Introduce remove_or_warn function
This patch introduces the remove_or_warn function which is a
generalised version of the {unlink,rmdir}_or_warn functions. It takes
an additional parameter indicating the mode of the file to be removed.
The patch also modifies certain functions to use remove_or_warn
where appropriate, and adds a test case for a bug fixed by the use
of remove_or_warn.
Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This patch introduces the remove_or_warn function which is a
generalised version of the {unlink,rmdir}_or_warn functions. It takes
an additional parameter indicating the mode of the file to be removed.
The patch also modifies certain functions to use remove_or_warn
where appropriate, and adds a test case for a bug fixed by the use
of remove_or_warn.
Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c | diff | blob | history | |
git-compat-util.h | diff | blob | history | |
t/t4134-apply-submodule.sh | [new file with mode: 0755] | blob |
unpack-trees.c | diff | blob | history | |
wrapper.c | diff | blob | history |