From: "Joshua T. Corbin" <jcorbin@wunjo.org>
To: git@vger.kernel.org
Subject: Re: [PATCH] cogito recursive cg-add and cg-rm
Date: Tue, 26 Apr 2005 01:17:19 -0400 [thread overview]
Message-ID: <200504260117.20205.jcorbin@wunjo.org> (raw)
In-Reply-To: <200504260027.03451.jcorbin@wunjo.org>
Small one line fix on top of the previos patch, apparently I was too hasty and
didn't test cg-rm on a single file ;)
Signed-off-by: Joshua T. Corbin <jcorbin@wunjo.org>
Index: cg-rm
===================================================================
--- bb131a04832677b22959ffe47f68900b94accc0c/cg-rm (mode:100755
sha1:f2d2e0c042fdf9496d53e833a50d960331e145b4)
+++ 5b396356f2c852f95a4226e955e186f46851a1f0/cg-rm (mode:100755
sha1:7701a83878c1e02dbce3abc0e3f1290c56c1be16)
@@ -40,7 +40,7 @@
shift
done > $RMFILE
rm -f $(cat $RMFILE)
- rmdir $(find $RMDIRS -depth -type d)
+ [ -n "$RMDIRS" ] && rmdir $(find $RMDIRS -depth -type d)
update-cache --remove -- $(cat $RMFILE)
rm -f $RMFILE
else
next prev parent reply other threads:[~2005-04-26 5:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-26 4:27 [PATCH] cogito recursive cg-add and cg-rm Joshua T. Corbin
2005-04-26 5:17 ` Joshua T. Corbin [this message]
2005-04-26 12:39 ` Petr Baudis
2005-04-26 13:21 ` Joshua T. Corbin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504260117.20205.jcorbin@wunjo.org \
--to=jcorbin@wunjo.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).