Re: How to capture date/time of push vs. local commit?
- From
Matthias Kestenholz <mk@spinlock.ch>
- Date
- May 8, 2008, 14:06 UTC
- Message-ID
- <1210255608.6737.12.camel@futex>
- In-Reply-To
- <6844644e0805080648g72c4b767l4bcf48ade319bf77@mail.gmail.com>
Doug,
On Thu, 2008-05-08 at 09:48 -0400, Doug Reiland wrote:
Show 17 quoted lines
> I have a main repository that folks clone and push to. Using git-log > for example on the main repository can show some confusing (too me at > least) date. > > For example, I clone. I make changes to my repository and commit on > Monday. I don't push my changes to the main repository until > Wednesday. > > git-log on main repository show changes made on Monday. > This makes it hard to determine when folks really got stuff into the > main repository. > > Is there way to change this so (in my example), I can determine those > changes weren't in place until Wednesday? Something in configuration > file or perhaps just a different option to git-log. > > Thanks in advance.
This is the nature of a distributed version control system. The timestamps cannot be used to establish a ordering of commits.
If you have reflogs enabled on the server (see man git-reflog) the information there can help you find out when the pushes have been made. There is no mechanism to transfer these reflogs into your local repository, since reflogs are always local to a single repository. If you have access to the server, you can examine the reflogs there. (f.e. using git log -g or git reflog)
-- http://spinlock.ch/blog/