Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /svnutils/trunk/src/

svnutils
Discussion topic

Back to topic list

CVS update: /svnutils/trunk/src/

Author sunny256
Full name Øyvind A. Holm
Date 2005-03-07 10:38:30 PST
Message User: sunny256
Date: 05/03/07 10:38:30

Modified:
 /svnutils/trunk/src/
  nosvn

Log:
 r105 | sunny256 | 2005-03-07 18:33:10 +0000 (Mon, 07 Mar 2005) | 3 lines
 
 * /trunk/src/nosvn
   Added the -r option and another example.

File Changes:

Directory: /svnutils/trunk/src/
===============================

File [changed]: nosvn
Url: http://svnutils.tigr​is.org/source/browse​/svnutils/trunk/src/​nosvn?r1=1.4&r2=​1.5
Delta lines: +19 -7
--------------------
--- nosvn 4 Mar 2005 12:35:59 -0000 1.4
+++ nosvn 7 Mar 2005 18:38:30 -0000 1.5
@@ -1,13 +1,25 @@
 #!/bin/sh
 
 #===================​====================​====================​============
-# $Id: nosvn 104 2005-03-04 12:35:08Z sunny256 $
+# $Id: nosvn 105 2005-03-07 18:33:10Z sunny256 $
 # Reads a bunch of filenames from stdin or files specified on the
-# command line and strips .svn directories away. Example of really
-# cleaning up the working copy:
+# command line and strips .svn directories away. Examples:
+#
+# Really clean up the working copy:
 # cd /top/of/working/copy
 # find . -type f | nosvn | xargs rm
 # svn revert -R .
+# Show the size of the working copy without the .svn directories:
+# cd /working/copy
+# find . -type f | nosvn | xargs wc -c
+#
+# Specifying -r (for reverse) as the first parameter lists only .svn
+# directories and their contents.
 #===================​====================​====================​============
 
-cat $* | egrep -v '/\.svn(/|$)'
+if [ "$1" = "-r" ]; then
+ shift
+ cat $* | egrep '/\.svn(/|$)'
+else
+ cat $* | egrep -v '/\.svn(/|$)'
+fi




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@svnu​tils.tigris.org
For additional commands, e-mail: cvs-help at svnutils dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /svnutils/trunk/src/ sunny256 Øyvind A. Holm 2005-03-07 10:38:30 PST
Messages per page: