[new] diffstat plugin
Michael Ellerman
michael at ellerman.id.au
Tue Nov 29 23:10:01 GMT 2005
On Tue, 29 Nov 2005 16:20, Wouter Bolsterlee wrote:
> 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 :-)
True :D
> 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
I thought about that, but I thought it was perhaps a bit too short - and I
didn't want to create a potential problem if there's something else in the
future that should get 'ds'.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051129/6b12f41f/attachment.pgp
More information about the bazaar
mailing list