git log --graph in the face of vendor imports

Ulrich Spörlein uqs at freebsd.org
Sat Dec 26 10:23:00 UTC 2020


On Sat, 2020-12-26 at 11:29:41 +0800, Philip Paeps wrote:
>I have this alias to make `git log --graph` meaningful:
>
>```
>[alias]
>         llog = log --graph
>--pretty=format:'%C(yellow)%h%C(red)%d%Creset %s %C(blue)- %an,
>%ar%Creset'
>```
>
>I noticed that in our repository, the graph shifts farther to the right
>with each vendor import.  Is this expected behaviour?

Yes. Fun fact: the right combination of format flags makes git segfault!

The history was massively streamlined to get fewer merge commits and git 
no longer core dumps when rendering the full thing with the proper 
flags.

Another fun fact, we have merge commits in the repo with upwards of 6 
parents or so.

[alias]
   glog = log --graph --pretty=format:'%Cred%h %C(green)%t %Creset -%C(yellow)%d%Creset %s %Cgreen(%an, %cr, %ad)%Creset' --date=short
   gnlog = log --graph --pretty=format:'%Cred%h %C(green)%t %Creset %C(red)%ad %Creset-%C(yellow)%d%Creset %s %n      %N %-GG' --date=short


% git gnlog
<hit G>
<it shows first commit>
% git glog
<hit G>
error: git died of signal 11
<it shows commits from the 2003-01-26 timeframe>

Someone™ should debug that ...
Uli


More information about the freebsd-git mailing list