Re: [PATCH] Add "--expire <time>" option to 'git prune'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 29, 2007, 20:06 UTC
- Message-ID
- <7vlk8gvmts.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <Pine.LNX.4.64.0711291419350.27959@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> The implementation uses st.st_mtime rather than st.st_ctime, > because it can be tested better, using 'touch -d <time>' (and > omitting the test when the platform does not support that > command line switch).
But I think you can use more portable -t for setting mtime to 1970/01/01, but I had a feeling that earlier we were bitten by non-portability of "touch" and introduced test-chmtime.