Skip to content

Navigation Menu

Sign in
Sign up

Using colors to enhance visualizations #69

initialcommit-io started this conversation in General
Discussion options

@abhijitnathwani @paketb0te Considering the visual nature of this tool, I think it's perfect for using colors to enhance the user experience and add additional information to the Git simulations where it makes sense.

For starters, I just released v0.2.7 which has the new global option --color-by=author.

This recolors the commit circles after drawing the graph based on the author of each commit and includes the color-coded author name in the frame along with the number of commits they authored:

Merge:

git-sim-merge_03-06-23_22-27-16

Rebase:

git-sim-rebase_03-06-23_22-30-00

Log Animation:

git-sim-log_03-06-23_23-24-48.mp4

I can see us extending this to stuff like:

  • coloring branches
  • color commits by date range
  • coloring commits that touch specific files
  • etc

If you have any ideas for cool ways we can use color to create new Git-Sim features, would love to hear them =)

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

This is cool!

You must be logged in to vote
0 replies
Comment options

Neat!

I think we can organize the coloring options nicely using an Enum, see #80
This will serve two purposes,

a) make all the options visible when using git-sim --help
b) makes the string comparison in the color_by() function less error-prone, since most IDEs will immediately show an error when trying to use a nonexistent Enum member.

You must be logged in to vote
1 reply
Comment options

Smart. Yes I agree let's do this!

Let me know if you can think of any other cool color-based features we could add into Git-Sim.

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

AltStyle によって変換されたページ (->オリジナル) /