git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git enhancement request - checkout (clone) set modified dates to commit date
@ 2018-04-22 17:18 Andrew Wolfe
  2018-04-22 18:09 ` brian m. carlson
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Wolfe @ 2018-04-22 17:18 UTC (permalink / raw)
  To: git; +Cc: Andrew D Wolfe Jr

Hello,

there are several timestamps in the lifecycle of a modification to a file in Git:

	• file write timestamp
	• git add timestamp
	• git commit timestamp
	• git push timestamp
	• git merge timestamp
	• git checkout timestamp

Right now when I check out/clone a repository, all the files have the checkout timestamp as

	• ctime - creation time for the file
	• mtime - modification time for the file
	• atime - las access time for the file

Not only does this force more work for timestamp-based build programs, it also deprives me, as a developer, of a visual 'file blame' that could be very useful in spotting changes without having to do git log over and over.

I would like to propose that the checkout process set the create and modification times of a file to the timestamp at which a file was committed.

When repository servers have different clocks - which is normal - each clone/merge/push should record the time offset.  Each timestamp on each commit should be corrected to the repository's specific time, and that should be a marking on the history.

Sincere regards,

Andrew Wolfe



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

end of thread, other threads:[~2018-04-23  3:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-22 17:18 Git enhancement request - checkout (clone) set modified dates to commit date Andrew Wolfe
2018-04-22 18:09 ` brian m. carlson
2018-04-22 19:01   ` Andrew Wolfe
2018-04-22 19:59     ` Kevin Daudt
2018-04-23  0:23       ` Andrew Wolfe
2018-04-23  3:32         ` Jacob Keller

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).