git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: Eric Hanchrow
Message 3 of 3 in “How to capture date/time of push vs. local commit?”
  1. Doug ReilandMay 8, 2008
  2. Eric HanchrowMay 8, 2008
  3. Matthias KestenholzMay 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.