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

Re: git-diff-tree for the first commit

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 19, 2005, 20:38 UTC
Message-ID
<20050519203839.GJ8105@cip.informatik.uni-erlangen.de>
In-Reply-To
<Pine.LNX.4.58.0505191323060.2322@ppc970.osdl.org>

Hello, I see. Thanks for the elaboration. I got the idea now. ;-)

> That said, a new flag that says "diff the root against the NUL tree" 
> wouldn't be wrong either, for when that is what you want.
I want it for the following scenario:

My git frontend sets the time stamps of the checked-out files to the time of the last modification. That way I can do a 'ls -lart' in a sub directory and have the most recently touched files on bottom. I also want to use this for keyword expansion.

I currently do it by calling more or less 'git-rev-tool HEAD' and 'git-diff-tree -r REVISION' and cache the output. However for the inital import are no 'timestamps' available. Now I can do two things. Implement a git-diff-tree flag or assume that any files which don't have a delta are imported by the initial tree.

Ideas?
	Thomas
Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 4 in “git-diff-tree for the first commit”
  1. Thomas GlanzmannMay 19, 2005
  2. Linus TorvaldsMay 19, 2005
  3. Thomas GlanzmannMay 19, 2005
  4. Linus TorvaldsMay 19, 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.