Re: [PATCH] In `git log --graph`, default to --pretty=oneline --abbrev-commit

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

 



Rafael Ascensão <rafa.almas@xxxxxxxxx> writes:

> I agree that `pretty=medium` is sometimes hard to read and, as of now,
> `pretty=oneline` can be very misleading:
>
>     $ git log --graph --oneline todo~2..todo master~2..master
>
> This will look like you have a sequence of commits when in fact they are
> completely unrelated.

This is pretty much unrelated to which level of details should be
the default, isn't it?

I do agree that --graph should be more intelligent around the root
commits when showing two or more unrelated lines of histories.

Something like [*1*] from discussion in 2013 (not the patch that
started the thread, for reasons stated in the thread, but ideas
offered as alternative design in the discussion) would be the right
way to solve it and it would work with all the log formatting
options, whether --oneline, --pretty=medium, etc.

[Reference]


*1* http://public-inbox.org/git/1382717268-21884-1-git-send-email-milton.soares.filho@xxxxxxxxx/



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

  Powered by Linux