git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Teemu LikonenNext: Teemu Likonen
Message 13 of 14 in “Add new git-graph command”
  1. Add new git-graph commandAdam Simpkins, Mar 30, 2008
  2. Jakub NarebskiMar 30, 2008
  3. Adam SimpkinsMar 30, 2008
  4. Matthieu MoyMar 30, 2008
  5. Adam SimpkinsMar 30, 2008
  6. Johannes SchindelinMar 30, 2008
  7. Junio C HamanoMar 30, 2008
  8. Adam SimpkinsMar 31, 2008
  9. Teemu LikonenMar 31, 2008
  10. Adam SimpkinsMar 31, 2008
  11. Stephen SinclairApr 1, 2008
  12. Teemu LikonenApr 1, 2008
  13. Jeff KingApr 1, 2008
  14. Teemu LikonenApr 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.