git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Reset sometimes updates mtime
@ 2015-07-09 14:02 Dennis Kaarsemaker
  2015-07-09 17:56 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Dennis Kaarsemaker @ 2015-07-09 14:02 UTC (permalink / raw)
  To: git

I'm seeing some behaviour with git reset that I find odd. Basically if I
do

git fetch && \
git reset --hard simple-tag-that-points-to-the-current-commit

sometimes the reset will update the mtime of all files and directories
in the repo and sometimes it will leave them alone. Changing it to

git fetch && \
git status && \
git reset --hard simple-tag-that-points-to-the-current-commit

Cause the mtime update to reliably not happen.

Bad thing is that I am relying on the mtime updates not to happen if the
files don't actually change. Is this an assumption I can safely make? If
it is, then I'll debug further (e.g. I don't even know yet if the file
gets rewritten or just touched, why the index gets updated as well
etc.).

-- 
Dennis Kaarsemaker
http://www.kaarsemaker.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-10  7:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09 14:02 Reset sometimes updates mtime Dennis Kaarsemaker
2015-07-09 17:56 ` Junio C Hamano
2015-07-10  7:30   ` Dennis Kaarsemaker

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).