Re: git rev-list formatting
- From
Eli Barzilay <eli@barzilay.org>
- Date
- Mar 22, 2010, 14:42 UTC
- Message-ID
- <m3aau0pgcy.fsf@winooski.ccs.neu.edu>
- In-Reply-To
- <4BA76BDF.6060106@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 11 quoted lines
> The rev-list man page lists all commands of that family, with > rev-list being the bare bones version, and log and friends being > more "high level". log and rev-list walk the revision tree, show > does not. Most of that can be changed through options. whatchanged > is a special family member... > > diff is from a completely different family (see git help diff or git > help diffcore). It never walks, but compares revisions (or other things). > > The log family never compares things, but can show a patch, i.e. the > difference to the ancestor(s).
(That's why I put `git diff' into the mix...)
Anyway -- thanks for the overview. So IIUC, `rev-list' and `log' are different in that the second can also format diffs -- ?
Show 9 quoted lines
>> Also related, it looks like `--abbrev-commit' has no effect on `git >> rev-list', but does on `git log', even through it's documented in the >> former's man page. So it looks like either there are more >> (undocumented?) differences, or maybe that's also a bug? > > I consider this a bug. In fact, it has an effect, but not a visible one. > You would have to use --abbrev=7 or such. > > A patch is upcoming.
Thanks.
And one more question -- is there some %-escape that shows the whole contents? Something like "%(contents)" in `for-each-ref'? (Which has a different set of escapes...)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://barzilay.org/ Maze is Life!