git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to capture date/time of push vs. local commit?
@ 2008-05-08 13:48 Doug Reiland
  2008-05-08 13:57 ` Eric Hanchrow
  2008-05-08 14:06 ` Matthias Kestenholz
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Reiland @ 2008-05-08 13:48 UTC (permalink / raw)
  To: git

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.

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

* Re: How to capture date/time of push vs. local commit?
  2008-05-08 13:48 How to capture date/time of push vs. local commit? Doug Reiland
@ 2008-05-08 13:57 ` Eric Hanchrow
  2008-05-08 14:06 ` Matthias Kestenholz
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Hanchrow @ 2008-05-08 13:57 UTC (permalink / raw)
  To: git

I would think you could get what you want with sufficient grovelling of
the files in .../.git/logs/.
-- 
It is a truth universally acknowledged, that any language in
possession of a rich syntax, must be in want of a rewrite.
        -- Piers Cawley

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

* Re: How to capture date/time of push vs. local commit?
  2008-05-08 13:48 How to capture date/time of push vs. local commit? Doug Reiland
  2008-05-08 13:57 ` Eric Hanchrow
@ 2008-05-08 14:06 ` Matthias Kestenholz
  1 sibling, 0 replies; 3+ messages in thread
From: Matthias Kestenholz @ 2008-05-08 14:06 UTC (permalink / raw)
  To: Doug Reiland; +Cc: git

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/

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

end of thread, other threads:[~2008-05-08 14:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 13:48 How to capture date/time of push vs. local commit? Doug Reiland
2008-05-08 13:57 ` Eric Hanchrow
2008-05-08 14:06 ` Matthias Kestenholz

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 NNTP newsgroup(s).