Code

git-clean: handle errors if removing files fails
authorMiklos Vajna <vmiklos@frugalware.org>
Thu, 21 Feb 2008 01:44:46 +0000 (02:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Feb 2008 04:21:39 +0000 (20:21 -0800)
commitaa9c83c2197cafb884face711ab7235790f9f265
tree73af0cf70fbe2d88878b6d1e510eb9c293cc35d1
parentb23b27eb5dc950081d4f76ae84f10168c4d149bd
git-clean: handle errors if removing files fails

git-clean simply ignored errors if removing a file or directory failed. This
patch makes it raise a warning and the exit code also greater than zero if
there are remaining files.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clean.c
t/t7300-clean.sh