Re: [PATCH] Add new git-graph command
- From
Jeff King <peff@peff.net>
- Date
- Apr 1, 2008, 05:02 UTC
- Message-ID
- <20080401050229.GA23876@coredump.intra.peff.net>
- In-Reply-To
- <200804010729.51202.tlikonen@iki.fi>
On Tue, Apr 01, 2008 at 07:29:51AM +0300, Teemu Likonen wrote:
> Adam's 'git graph' is a way of viewing log (in terminal environment), it > looks very similar to 'git log --pretty=oneline' and it accepts very > much the same command line options. That's why I see 'git log' being > logical place for such functionality.
Adam suggested that it may be possible to abstract the graphing API so that it can be called progressively. I would love to see:
git log --pretty=format:'%g %h %s'
where %g would be "the graph lines for this commit." But maybe that is not workable since the graph may take multiple lines to show.
> Actually, to me it would be more logical if 'git whatchanged' was 'git > log --changed' or '--verbose / -v' something.
How about:
git log --raw --full-history --always
which is identical. Though in most cases, one would be happy with "git log --raw". I think whatchanged really only exists separately because it predates the merging of many of the revision-walking commands.
-Peff