All of lore.kernel.org
 help / color / mirror / Atom feed
* How Does "git log --reverse" Work?
@ 2025-12-30  0:18 Jon Forrest
  2025-12-30  2:04 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Forrest @ 2025-12-30  0:18 UTC (permalink / raw)
  To: git

I'm trying to understand how 'git log --reverse' displays
commits in reverse order (i.e. oldest commit first).

The fact that each commit object has pointer(s) to parent
object(s) makes it trivial to go newest to oldest.
But, I haven't found a way to go oldest to newest.

I've looked at the code but it's not well commented.
Does the answer have something to do with commit lists?

Any advice would be appreciated.

Cordially,
Jon Forrest


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

end of thread, other threads:[~2025-12-30  2:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-30  0:18 How Does "git log --reverse" Work? Jon Forrest
2025-12-30  2:04 ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.