]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
cmd-save: if verbose==1, don't bother printing unmodified names.
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 12 Jan 2010 01:44:57 +0000 (20:44 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 12 Jan 2010 03:30:58 +0000 (22:30 -0500)
That just clutters the output; clearly what people *really* want to see is
the list of files we're actually modifying.

But if you want more, increase the verbosity and you'll get more.

cmd-save.py

index c707b0222fc0a878504de585494d94499388982a..529ad14f0b672146f87d8d31236fa4b6a29b5ad9 100755 (executable)
@@ -82,7 +82,9 @@ for (transname,ent) in index.Reader(git.repo('bupindex')).filter(extra):
                 status = 'M'
         else:
             status = ' '
-        log('\n%s %s ' % (status, ent.name))
+        if opt.verbose >= 2 or (status in ['A','M'] 
+                                and not stat.S_ISDIR(ent.mode)):
+            log('\n%s %s ' % (status, ent.name))
 
     if not exists:
         continue