hammer history ls
Matthew Dillon
dillon at apollo.backplane.com
Mon Feb 16 17:48:30 PST 2009
:Hi again,
:after some hours of sleep I took a look into the hammer sources and
:pushed my code in there.
:If anybody else cares about this option, the patch is attached to this mail.
:You can then basically use:
:
:> hammer history-count fname
:
:to only display a count (I did not care about any formatting here :) as I use
:it from a script only anyway).
:And more importantly it is possible to specify a start-tid and end-tid option as the
:last arguments that are passed to history[-count]!
:
:> hammer history[-count] <fname1> ... <fnameN> start-tid=0x........ end-tid=0x........
:
:Btw when I took a look at the code I realized that there is an offset option that
:is not documented anywhere in the man pages .....
:
:Regards,
: Tobias
Hmm. The filename space is kinda overloaded there with those TID ranges.
Do we even need TID ranges? A person could simply sort the output and
pick out what he wanted. Alternatively they could be specified as normal
options prior to the directive.
hammer --start-tid=0x... --end-tid=0x... history-count <fname*>
If you wanted to get really fancy you could also implement date ranges.
hammer --start-date=20-Sep-2008 --end-date=01-Jan-2009 ...
-Matt
More information about the Users
mailing list