public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Confusion on the latest git
@ 2024-04-15 22:45 Stuff Received
  2024-04-15 23:09 ` Paul Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Stuff Received @ 2024-04-15 22:45 UTC (permalink / raw)
  To: gcc-help

I "git pull" every once in a while and then build, noting which version 
is being built via "git log".

Git log shows the following:

commit 62a0ef0d02cbb74cd865c1db2ecb7ca1b11f87cd
Author: Nathaniel Shead <nathanieloshead@gmail.com>
Date:   Sat Feb 17 23:10:49 2024 +1100
[...]
commit 3319d1a4aa5ccadc22dcb80252ab884c792b263b
Author: GCC Administrator <gccadmin@gcc.gnu.org>
Date:   Sun Apr 14 00:16:53 2024 +0000
[...]
commit a9d3b3caef87d76072c946145d21e7606b303e12
Author: Mark Wielaard <mark@klomp.org>
Date:   Sat Apr 13 23:02:14 2024 +0200


Why does Shead's commit appear first after the daily bump and Wielaard's 
commit when the date is before the latter?

S.

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

* Re: Confusion on the latest git
  2024-04-15 22:45 Confusion on the latest git Stuff Received
@ 2024-04-15 23:09 ` Paul Smith
  2024-04-19 15:24   ` Stuff Received
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Smith @ 2024-04-15 23:09 UTC (permalink / raw)
  To: Stuff Received, gcc-help

On Mon, 2024-04-15 at 18:45 -0400, Stuff Received wrote:
> I "git pull" every once in a while and then build, noting which
> version is being built via "git log".
> 
>  [...]
> 
> Why does Shead's commit appear first after the daily bump and
> Wielaard's commit when the date is before the latter?

Because you are looking at the author date.  The author date tells you
the date that the author created the commit.  But that might be very
different from the date when the commit was pushed to the remote.

If you want to see the latter date you want the committed date.  You
can see info on both the author and the committer by adding
"--pretty=fuller" (among other options) to "git log".

Generally git sorts by date committed, not date authored.

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

* Re: Confusion on the latest git
  2024-04-15 23:09 ` Paul Smith
@ 2024-04-19 15:24   ` Stuff Received
  0 siblings, 0 replies; 3+ messages in thread
From: Stuff Received @ 2024-04-19 15:24 UTC (permalink / raw)
  To: Paul Smith, gcc-help

On 2024-04-15 19:09, Paul Smith wrote (in part):
> If you want to see the latter date you want the committed date.  You
> can see info on both the author and the committer by adding
> "--pretty=fuller" (among other options) to "git log".
> 
> Generally git sorts by date committed, not date authored.

Thank you.


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

end of thread, other threads:[~2024-04-19 15:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-15 22:45 Confusion on the latest git Stuff Received
2024-04-15 23:09 ` Paul Smith
2024-04-19 15:24   ` Stuff Received

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 read-only IMAP folder(s) and NNTP newsgroup(s).