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

Re: cogito - how do I ???

From
Linus Torvalds <torvalds@osdl.org>
Date
May 23, 2005, 14:35 UTC
Message-ID
<Pine.LNX.4.58.0505230731430.2307@ppc970.osdl.org>
In-Reply-To
<20050523071919.GG23388@cip.informatik.uni-erlangen.de>
On Mon, 23 May 2005, Thomas Glanzmann wrote:
> 
> > 	git-rev-tree MERGE_HEAD ^HEAD | git-diff-tree -v -m -s --stdin
> 
> This doesn't work for me:
Yeah, I'm an idiot.
Show 6 quoted lines
> Bit this does:
> 
> (faui00u) [~/work/git/git] git-rev-tree 2cb45e95438c113871fbbea5b4f629f9463034e7 ^09d74b3b5ac634495e17b92b2b785fa996ffce97 | awk '{print $2'} | sed 's#:.*##' | git-diff-tree -v -m -s --stdin
> 
> was that a typo or is git-diff-tree supposed to handle the output of
> git-rev-tree as well and it is a bug?

It was me just forgetting about the time thing in rev-tree, forcing you to have a second phase there (I usually use just "cut -d' ' -f2" - the input _can_ have the ":n" flag thing that rev-tree outputs, and git-diff-tree will just ignore it).

I actually suspect that whole time thing was a mistake, it seemed sensible back when we didn't have any other way of ordering the changesets well, but it's really a bad ordering anyway to do it by time (ie add a "sort -rn" in there), and we can (and probably should) order rev-tree output with some topological sort based on the commit tree.

		Linus
Previous: Thomas GlanzmannNext: Junio C Hamano
Message 9 of 13 in “cogito - how do I ???”
  1. Sam RavnborgMay 21, 2005
  2. SeanMay 21, 2005
  3. Linus TorvaldsMay 21, 2005
  4. Sam RavnborgMay 22, 2005
  5. Linus TorvaldsMay 22, 2005
  6. Thomas GlanzmannMay 23, 2005
  7. Junio C HamanoMay 23, 2005
  8. Thomas GlanzmannMay 23, 2005
  9. Linus TorvaldsMay 23, 2005
  10. Junio C HamanoMay 23, 2005
  11. Herbert XuMay 24, 2005
  12. Linus TorvaldsMay 24, 2005
  13. Frank SorensonMay 22, 2005

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.