Re: add a blank line when a commit has no parent in log output?

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

 



"Jason Pyeron" <jpyeron@xxxxxxxx> writes:

> Is there a way to have it look like:
>
> | | | *  5505e019c2 2014-07-09 initial xxxxxx@xxxx
> | | |
> | | | *  3e658f4085 2019-09-10 (wiki/wip-citest, origin/wip-citest) Added defau
> | | | *  ad148aafe6 2019-09-10 Added default CI/CD Jenkinsfile (from f7daf088)
>
> Or 
>
> | | | #  5505e019c2 2014-07-09 initial xxxxxx@xxxx
> | | | *  3e658f4085 2019-09-10 (wiki/wip-citest, origin/wip-citest) Added defau
> | | | *  ad148aafe6 2019-09-10 Added default CI/CD Jenkinsfile (from f7daf088)

This latter variant won't work.  Imagine we are showing --left-right
for example.  Which side does '#' belong to?

The former is not so great in that it wastes a line, and the break
won't be as noticeable when --graph is *not* used with --oneline.

It would be great to show it more like this:

 | | |   * 5505e019c2 2014-07-09 initial xxxxxx@xxxx
 | | | *  3e658f4085 2019-09-10 (wiki/wip-citest, origin/wip-citest) Added defau
 | | | *  ad148aafe6 2019-09-10 Added default CI/CD Jenkinsfile (from f7daf088)

The point being that by shifting the column for the commit to the
right, it shows that 5505 is not a child of 3e65 (and 3e65 is the
tip of its lineage), and its parents do not appear in the displayed
history.  In the real life, the independent 'root' may be connected
to the main history somehow, so you may see a graph like this:

 | | *  12345678 2021-01-14 merge xxxxx@xxxx into the history  
 | | |\
 | | | \
 | | *  \  23456789 2021-01-12 merge citest into the main history
 | | |\  * 5505e019c2 2014-07-09 initial xxxxxx@xxxx
 | | | *  3e658f4085 2019-09-10 (wiki/wip-citest, origin/wip-citest) Added defau
 | | | *  ad148aafe6 2019-09-10 Added default CI/CD Jenkinsfile (from f7daf088)


Hmm?



[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