Re: standarize mtime when git checkout
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 8, 2013, 22:03 UTC
- Message-ID
- <7vobacyajq.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7D0754FFADBD2D4785C1D233C497C47B209AF2BC@SJEXCHMB06.corp.ad.broadcom.com>
"Rick Liu" <rickliu@broadcom.com> writes:
> Can we use GIT's commit time as the mtime for all of files/folders when we do "git checkout"?
No. That will screw up common practice of build based on file timestamps (e.g. make).
You may be interested in "git archive $commit" which will set the file timestamps that of the commit object.