Re: git checkout behaviour when only ctime of file changes
- From
Bagas Sanjaya <bagasdotme@gmail.com>
- Date
- Apr 19, 2021, 11:10 UTC
- Message-ID
- <a6a5bb81-9a86-8901-31dd-dc9c09da0a23@gmail.com>
- In-Reply-To
- <CAOWQn3Qesh0+CkaD95q78Rq_vN5tjWKDe7HTk0Ynk-NY8XUKzg@mail.gmail.com>
On 19/04/21 16.11, Cristian Morales Vega wrote:
Show 5 quoted lines
> Basically after something updates the ctime of a file, a > "git checkout" can behave differently depending on whether a > "git update-index --refresh" has been run before or not. > _Maybe_ it could make sense for "git checkout" to always behave as if > "git update-index --refresh" had been run before? No idea really.
I know that setting SELinux label can alter file ctime, but when I need to write the test that simulate file ctime update, do you know which Unix command can trigger that, beside SELinux tools?
-- An old man doll... just what I always wanted! - Clara