[GH-ISSUE #90] Arrow direction #57

Closed
opened 2026-03-02 16:47:52 +03:00 by kerem · 2 comments
Owner

Originally created by @A11Might on GitHub (Jun 3, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/90

why arrow direction is from new commit to old, it's the reverse to command git commit. can i change it by some parameter.

Originally created by @A11Might on GitHub (Jun 3, 2023). Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/90 why arrow direction is from new commit to old, it's the reverse to command `git commit`. can i change it by some parameter.
kerem closed this issue 2026-03-02 16:47:52 +03:00
Author
Owner

@initialcommit-io commented on GitHub (Jun 6, 2023):

@A11Might The purpose of arrows in Git DAG are to identify parent/child relationships between nodes (commits). The arrows aren't supposed to represent the flow of time.

For that reason the arrows always point from child commit to its parent(s). You can use the --reverse flag on any git-sim command to reverse the direction of the whole diagram, but arrows will still always go from child commit to its parent(s), by design.

Closing this since this is operating by design.

<!-- gh-comment-id:1579084067 --> @initialcommit-io commented on GitHub (Jun 6, 2023): @A11Might The purpose of arrows in Git DAG are to identify parent/child relationships between nodes (commits). The arrows aren't supposed to represent the flow of time. For that reason the arrows always point from child commit to its parent(s). You can use the `--reverse` flag on any git-sim command to reverse the direction of the whole diagram, but arrows will still always go from child commit to its parent(s), by design. Closing this since this is operating by design.
Author
Owner

@initialcommit-io commented on GitHub (Jun 6, 2023):

(Edited my previous comment - I meant to say arrows always point from child commit to its parent(s).

<!-- gh-comment-id:1579087387 --> @initialcommit-io commented on GitHub (Jun 6, 2023): (Edited my previous comment - I meant to say _**arrows always point from child commit to its parent(s)**_.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-sim#57
No description provided.