Thread (10 messages) flat view 10 messages, 6 authors, 2016-06-15

Re: git and time

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:42:42

Matthew L Foster wrote:
After seeing how git currently accepts a remote repository's timestamp
it occurred to me that git should probably instead prefer the time
a particular changeset was committed to _this_ repository. Perhaps
I don't know enough about git but it seems to me the important
information is  when a particular changeset was committed to this
repository, all other remote/sub/parent repositories' timestamps
are secondary (or at least should be tracked separately). 
First, the information you want is contained in reflog. Dates the head tip
got the specified value.

Second, git cannot rewrite commits (and commits contain timestamp) when
fetching commit from remote repository for performance reasons.

Third, git uses timestams as heuristics, but relies on parent information.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help