[new] diffstat plugin

Wouter Bolsterlee uws at xs4all.nl
Tue Nov 29 22:20:17 GMT 2005


På Tue, Nov 29, 2005 at 02:09:50AM -0600, Michael Ellerman skrev:
> I already had code for diffstat in shelf, so I rolled it into a plugin, 'cause 
> I find myself typing 'bzr dif | diffstat' a bit and hitting the '|' on my 
> laptop sucks a good 1 ms out of me everytime.
> 
> http://michael.ellerman.id.au/files/diffstat

You could also have used 'bzr di' instead of 'bzr dif' to save one keypress
and spaces around the pipe could also be omitted :-)

Speaking of command aliases, this patch would be cool:


=== modified file '__init__.py'
--- __init__.py
+++ __init__.py
@@ -5,6 +5,7 @@

 class cmd_diffstat(bzrlib.commands.Command):
     """diffstat - show stats about changes to the working tree"""
+    aliases = ['ds']
     takes_args = ['file*']
     def run(self, file_list=None):
         from diffstat import DiffStat


Thanks for the good work.

  mvrgr, Wouter

-- 
:wq                                                       mail uws at xs4all.nl
                                                      web http://uwstopia.nl

what it was that you had said to me :: like i care at all            -- tool
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051129/56eb1a67/attachment.pgp 


More information about the bazaar mailing list