Re: git-diff-tree for the first commit
- From
- Thomas 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