Playing with log tools
Teemu Likonen
tlikonen at iki.fi
Fri Jun 6 09:42:03 BST 2008
John Arbash Meinel wrote (2008-06-04 15:24 -0500):
> Certainly there is room for disagreement. But generally the Bazaar
> project distinguishes changes made on the current branch (commit),
> from changes made that you integrate (merge + commit).
>
> And you can view just the changes on this branch with 'bzr log
> --short'. *I* find it a very nice way to get an overview of what has
> been going on.
>
> For example 'bzr log --short -r -10..-1' on bzr.dev takes up ~ 1 page
> worth of real-estate. (34 lines). 'bzr log --long -r -10..-1' prints
> out lots of stuff, including all the details for each feature, and
> takes 289 lines. Now, you can do 'bzr log --long --limit 10' which is
> 70 lines long, and gives you the details of the last feature that was
> merged, but doesn't give you an actual overview of what has been going
> on in the branch.
Indeed "bzr log --short" gives a nice overview easily. If I understand
correctly it is somewhat equivalent of git's --first-parent. Anyway,
I was bored and played with log tools. I tried to emulate "bzr log
--short" with git. It does not come as easily but aliases would help.
This is from bzrtools.dev repository and my git conversion of it.
$ bzr log --short -r 632..635
635 Aaron Bentley 2008-05-11 [merge]
Merge Belcheko's hardlink feature tests
634 Aaron Bentley 2008-05-11
Update version to 1.5
633 Aaron Bentley 2008-05-11
update NEWS
632 Aaron Bentley 2008-04-26 [merge]
Merge additional syntax highlighting from Marius Kruger
$ git log --first-parent --pretty=tformat:"%h %an%x09%ai%n%x09%s%n" 828e414 -4
828e414 Aaron Bentley 2008-05-11 22:57:59 -0400
Merge Belcheko's hardlink feature tests
cbede68 Aaron Bentley 2008-05-11 22:46:47 -0400
Update version to 1.5
61a723d Aaron Bentley 2008-05-11 22:46:09 -0400
update NEWS
d3be503 Aaron Bentley 2008-04-26 13:28:53 -0400
Merge additional syntax highlighting from Marius Kruger
This is becoming my favourite:
$ git log --graph --pretty=oneline --abbrev-commit 828e414 -9
* 828e414... Merge Belcheko's hardlink feature tests
|\
| * 556053d... properly using HardlinkFeature in tests.
* | cbede68... Update version to 1.5
* | 61a723d... update NEWS
* | d3be503... Merge additional syntax highlighting from Marius Kruger
|\ \
| |/
|/|
| * e9adff2... in colorstring() call terminal.colorstring from one place, [...]
| * 3ca1351... * do trainling white space detection in one place. [...]
| * 2bff9e4... merge with mainline
| |\
| |/
|/|
* | be9c102... Update NEWS
More information about the bazaar
mailing list