git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] cogito recursive cg-add and cg-rm

From
JCJoshua T. Corbin <jcorbin@wunjo.org>
Date
Apr 26, 2005, 05:17 UTC
Message-ID
<200504260117.20205.jcorbin@wunjo.org>
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
Previous: Joshua T. CorbinNext: Petr Baudis
Message 2 of 4 in “cogito recursive cg-add and cg-rm”
  1. cogito recursive cg-add and cg-rmJoshua T. Corbin, Apr 26, 2005
  2. Joshua T. CorbinApr 26, 2005
  3. Petr BaudisApr 26, 2005
  4. Joshua T. CorbinApr 26, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.