Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Graph with arrows doesn't render properly multiple branches from the same commit #140

Closed
nicoespeon opened this issue Jan 11, 2017 · 0 comments
Labels
🐛 Bug Unexpected behavior to be fixed

Comments

@nicoespeon
Copy link
Owner

arrow-commit-pushed-from-same-branch

Arrow is expecting the branch dash to come vertically since commit is "pushed in Y".

Source code:

var gitgraph = new GitGraph({
  template: "blackarrow",
});

var master = gitgraph.branch("master")
master.commit();

var branch0 = master.branch("branch0")
branch0.commit();
master.commit();
branch0.commit();

var branch1 = branch0.branch("branch1")
master.merge(branch0)

var branch2 = branch1.branch("branch2")
var branch3 = branch1.branch("branch3")
branch3.commit().commit();
branch2.commit();
branch3.commit();
branch2.commit();
@nicoespeon nicoespeon added the 🐛 Bug Unexpected behavior to be fixed label Jan 11, 2017
@nicoespeon nicoespeon reopened this Apr 3, 2017
nicoespeon added a commit that referenced this issue Apr 3, 2017
f3e8a4a

See #140, this is causing issues with following snippet:

var gitgraph = new GitGraph({
  template: "blackarrow",
});

var master = gitgraph.branch("master")
master.commit();

var branch0 = master.branch("branch0")
branch0.commit();
master.commit();
branch0.commit();

var branch1 = branch0.branch("branch1")
master.merge(branch0)

var branch2 = branch1.branch("branch2")
var branch3 = branch1.branch("branch3")
branch3.commit().commit();
branch2.commit();
branch3.commit();
branch2.commit();
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Unexpected behavior to be fixed
Projects
None yet
Development

No branches or pull requests

1 participant