Re: Git checkout preserve timestamp?
- From
Karl Hasselström <kha@treskal.com>
- Date
- Mar 5, 2007, 12:28 UTC
- Message-ID
- <20070305122828.GA3481@diana.vm.bytemark.co.uk>
- In-Reply-To
- <Pine.LNX.4.63.0703051230390.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On 2007-03-05 12:32:07 +0100, Johannes Schindelin wrote:
Show 7 quoted lines
> On Mon, 5 Mar 2007, Karl Hasselström wrote: > > > Since the content is exactly the same as before, I'd be of the > > strong opinion that nothing has changed as far as the make system > > should be concerned. > > You are missing an important point here: there _was_ a change.
But I don't want my make tool to care! I want it to rebuild if and only if the file contents now are different from the file contents as of the last rebuild.
Just like if I change a git-tracked file, then change it back, git will _not_ claim that the file has changed; it will compute its sha1, see that it is identical to what's in HEAD, and from there on consider that file not changed even thogh its timestamp was changed.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle