From: Avery Pennarun Date: Tue, 12 Jan 2010 01:44:57 +0000 (-0500) Subject: cmd-save: if verbose==1, don't bother printing unmodified names. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5ae2d5cf3a747d3e5d9b9fd933bf704433391b02;p=packages%2Fb%2Fbup.git cmd-save: if verbose==1, don't bother printing unmodified names. 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. --- diff --git a/cmd-save.py b/cmd-save.py index c707b02..529ad14 100755 --- a/cmd-save.py +++ b/cmd-save.py @@ -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