From: Peter Collingbourne Date: Fri, 26 Mar 2010 15:25:31 GMT Subject: [PATCH 03/12] git rm: display a warning for every unremovable file Message-ID: <1269617140-7827-4-git-send-email-peter@pcc.me.uk> In-Reply-To: <1269617140-7827-1-git-send-email-peter@pcc.me.uk> This patch causes git-rm to display a warning if it was unable to remove a file other than the first one, rather than silently ignoring the error, which was the previous behaviour. Signed-off-by: Peter Collingbourne --- builtin/rm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/builtin/rm.c b/builtin/rm.c index f3772c8..05a5158 100644 --- a/builtin/rm.c +++ b/builtin/rm.c @@ -259,6 +259,8 @@ int cmd_rm(int argc, const char **argv, const char *prefix) } if (!removed) die_errno("git rm: '%s'", path); + else + warning("git rm: '%s': %s", path, strerror(errno)); } } -- 1.6.5