Default ordering of git log output

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

 



Is it intended behavior that the default git log output (without ordering parameters) can show parents before children? 

The man says:
    Commit Ordering
       By default, the commits are shown in reverse chronological order.
so it tells nothing about parent-to-child relationship.

I‘ve just faced an example in an open source repository, where I reproduced this behavior: a parent is shown before its child. (so if this behavior is not intended I can give the project URL for debugging)

So could you please clarify:
1. Is it true that the rule "no parents before all of its children are shown” is not guaranteed for default ordering?

2. What does "reverse chronological order” mean? How commits are actually sorted in git log? 

// I was always under impression that git log lists commit in the order in which they are “recorded" to the repository (e.g. pulled), since this seems to be both the fastest way, and also pretty acceptable from the ordering point of view.  

Thanks a lot!
-- Kirill.

--
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]