Re: Git should preserve modification times at least on request
- From
- Hilco Wijbenga <hilco.wijbenga@gmail.com>
- Date
- Feb 20, 2018, 16:42 UTC
- Message-ID
- <CAE1pOi1FMbdrgpN44BN3MxXoMLA=osPSFiLLHN-FEYABb=NPzA@mail.gmail.com>
- In-Reply-To
- <CAE1pOi00dRYGgLbvep=pC1azAqc+qX=K1+iM-SZycygZyMBg6w@mail.gmail.com>
On Mon, Feb 19, 2018 at 3:22 PM, Hilco Wijbenga <hilco.wijbenga@gmail.com> wrote:
Show 5 quoted lines
> Aside from exactly which modification times should be used (which I > would love to have a bit more control over as well), something else > I'd like to see is that, when switching between branches, files that > are the same on both branches should not have their modification time > changed.
As Junio pointed out to me, Git actually already does what I want when switching branches. To verify, I switched between 5 branches after setting a specific timestamp on a particular file, and it did not change throughout the process. Now I'm left wondering when this changed or whether my memory is faulty. I could have sworn this did not work previously. :-)