remove_dir_recurse(): handle disappearing files and directories
commit863808cd1a7bd23dc12a3b54e32eb3f25d9487bc
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 18 Jan 2014 22:48:57 +0000 (18 23:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Jan 2014 21:46:47 +0000 (21 13:46 -0800)
tree5bde88296a381075a2224b8009366e507a9d663c
parentecb2c282c0d6cdd9938ba9cf228316ebc91b397e
remove_dir_recurse(): handle disappearing files and directories

If a file or directory that we are trying to remove disappears (e.g.,
because another process has pruned it), do not consider it an error.

However, if REMOVE_DIR_KEEP_TOPLEVEL is set, and the toplevel
directory is missing, then consider it an error (like before).

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c