Re: [PATCH 2/2] graph: fix collapse of multiple edges
- From
Jeff King <peff@peff.net>
- Date
- Jan 8, 2020, 07:25 UTC
- Message-ID
- <20200108072541.GC1675456@coredump.intra.peff.net>
- In-Reply-To
- <12abb32531ed7125293986dc139a7ffed3839065.1578457675.git.gitgitgadget@gmail.com>
On Wed, Jan 08, 2020 at 04:27:55AM +0000, Derrick Stolee via GitGitGadget wrote:
Show 24 quoted lines
> Before this change: > > | | | | | | * > | |_|_|_|_|/|\ > |/| | | | |/ / > | | | | |/| / > | | | |/| |/ > | | |/| |/| > | |/| |/| | > | | |/| | | > > By adding the logic for "filling" a horizontal edge between the > target column and the current column, we are able to resolve the > issue. > > After this change: > > | | | | | | * > | |_|_|_|_|/|\ > |/| | | | |/ / > | | |_|_|/| / > | |/| | | |/ > | | | |_|/| > | | |/| | |
Hmm. Your description and your diagrams make sense to me. But one curious thing is that the earlier test you added for 6_* does not need modified. Because it continues to show:
| | | | * 6_F
| |_|_|/|
|/| | |/
| | |/|
| |/| |
| * | | 6_Drather than adding a horizontal component to the second-parent line. That seems inconsistent.
-Peff