initialcommit-com / git-sim

Visually simulate Git operations in your own repos with a single terminal command.
GNU General Public License v2.0
4.17k stars 107 forks source link

Arrow direction #90

Closed A11Might closed 1 year ago

A11Might commented 1 year ago

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

initialcommit-io commented 1 year ago

@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.

initialcommit-io commented 1 year ago

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