Re: How to capture date/time of push vs. local commit?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Doug,

On Thu, 2008-05-08 at 09:48 -0400, Doug Reiland wrote:
> 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/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux