Re: git and mtime
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 19, 2008, 12:31 UTC
- Message-ID
- <alpine.DEB.1.00.0811191327210.30769@pacific.mpi-cbg.de>
- In-Reply-To
- <20081119113752.GA13611@ravenclaw.codelibre.net>
Hi,
On Wed, 19 Nov 2008, Roger Leigh wrote:
> Would it be possible for git to store the mtime of files in the tree?
No, since this would wreck people's workflows:
- compile in branch "master" - switch to branch "topic" - compile - switch back to branch "master"
Now you _want_ files in "master" that were changed in "topic" to be recompiled.
This is a quite common case.
However, nothing hinders you having your own ".gitmtimes" in the tree, and a script people can use as a hook, which applies the mtimes to the files.
Ciao, Dscho