summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d66189e)
raw | patch | inline | side by side (parent: d66189e)
author | Junio C Hamano <junkio@cox.net> | |
Sat, 24 Sep 2005 22:02:35 +0000 (15:02 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 24 Sep 2005 22:02:35 +0000 (15:02 -0700) |
Even without the trouble it causes to people without GNU xargs,
it was not really necessary to print from Perl and then remove it
outside. Just unlink it inside Perl.
Signed-off-by: Junio C Hamano <junkio@cox.net>
it was not really necessary to print from Perl and then remove it
outside. Just unlink it inside Perl.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-reset.sh | patch | blob | history |
diff --git a/git-reset.sh b/git-reset.sh
index e028ff65dba75699580d47fbbe3fa6825774af83..dfa9cb8bb17f6f8694d0c639fe8b1663f9ec3c8f 100755 (executable)
--- a/git-reset.sh
+++ b/git-reset.sh
while (<$fh>) {
chomp;
if (! exists $keep{$_}) {
- print "$_\0";
+ # it is ok if this fails -- it may already
+ # have been culled by checkout-index.
+ unlink $_;
}
}
- ' $tmp-exists | xargs -0 rm -f --
+ ' $tmp-exists
;;
--soft )
;; # Nothing else to do