Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ErnWong/3e5d85e0cadff09b22a4e34dbd3f5eb9 to your computer and use it in GitHub Desktop.
Save ErnWong/3e5d85e0cadff09b22a4e34dbd3f5eb9 to your computer and use it in GitHub Desktop.
Tokens From below From horizontal From above To below To horizontal To above
+ Yes ✔️ Yes ✔️ Yes ✔️ Yes ✔️ Yes ✔️ Yes ✔️
< No ❌ Yes ✔️ No ❌ Yes ✔️ Yes ✔️ Yes ✔️
> Yes ✔️ Yes ✔️ Yes ✔️ No ❌ Yes ✔️ No ❌
.,_ Yes ✔️ Yes ✔️ No ❌ Yes ✔️ Yes ✔️ No ❌
'`^* No ❌ Yes ✔️ Yes ✔️ No ❌ Yes ✔️ Yes ✔️
-~ No ❌ Yes ✔️ No ❌ No ❌ Yes ✔️ No ❌
/ Yes ✔️ No ❌ No ❌ No ❌ No ❌ Yes ✔️
\ No ❌ No ❌ Yes ✔️ Yes ✔️ No ❌ No ❌

Graph is topologically ordered left to right. (Right commit's parents are on its left).

The choice of which commit should be used as the 1st parent of another commit would be:

Prefer:

  1. Horizontal connector,
  2. then top connector,
  3. then bottom connector.

Recursively rank them on branching paths. Tie break using the far right commit (latest commit). Second tie break using the commit vertically closest. Third tie break by choosing the top commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment