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

Re: What's cooking in git.git (Mar 2010, #02; Sun, 07)

From
Jeff King <peff@peff.net>
Date
Mar 10, 2010, 19:59 UTC
Message-ID
<20100310195941.GA32387@sigill.intra.peff.net>
In-Reply-To
<7vvdd5t2lf.fsf@alter.siamese.dyndns.org>
On Tue, Mar 09, 2010 at 04:58:04PM -0800, Junio C Hamano wrote:
> > With the current code, gitk (which calls "log --pretty=raw") barfs on a
> > repository with log.decorate turned on.
> 
> Yuck.  Do you mean we would need _at least_ something like this?  I am
Yeah, your patch fixes the problem.
Show 5 quoted lines
> undecided if we should limit to FMT_RAW if that is the case, though.
> Reading from "git log --pretty=raw" is just as unkosher as reading from
> "git log --pretty=oneline", but a bigger question is do we still have
> enough plumbing support to replace them, or Porcelain "log" has advanced
> too much too quickly, leaving plumbing "rev-list" behind.

It looks like the switch to "git log" in gitk came from c961b22 (gitk: Use git log and add support for --left-right, 2007-07-09), which in turn comes from:

  http://article.gmane.org/gmane.comp.version-control.git/51977

It looks like rev-list supports --left-right properly now (not sure if it did back then or not), so if that was the only reason, it could probably switch back.

I seem to recall there are other reasons to use "log" in a script, but I can't remember any off the top of my head.

-Peff
Previous: Junio C HamanoNext: SZEDER Gábor
Message 5 of 6 in “What's cooking in git.git (Mar 2010, #02; Sun, 07)”
  1. Junio C HamanoMar 7, 2010
  2. Junio C HamanoMar 8, 2010
  3. Jeff KingMar 9, 2010
  4. Junio C HamanoMar 10, 2010
  5. Jeff KingMar 10, 2010
  6. SZEDER GáborMar 8, 2010

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.