b0rk,
@b0rk@jvns.ca avatar

working on designing some git diagrams this morning. thinking about how to:

  • make the direction of time clear (which commits are earlier/later?)
  • differentiate branches vs commits vs tags
  • show where HEAD is
ondras,
@ondras@cztwitter.cz avatar

@b0rk how about using an actual miniature HEAD instead of the star?

b0rk,
@b0rk@jvns.ca avatar

@ondras hmm yeah, I like that writing HEAD feels more explicit

tartley,
@tartley@mastodon.social avatar

@b0rk I love what you've got so far! One drive-by suggestion: Are you open to differentiating commits, branches, tags by color as well as the annotations I see here? Commits are common & fundamental, so need no color, but branch names and tags could each have a high luminance, low-saturation background color.

tartley,
@tartley@mastodon.social avatar

@b0rk Perhaps denote HEAD with a small annotation on a branch name, in the same style that the above diagram shows 'init' on a commit?

tomasaschan,
@tomasaschan@hachyderm.io avatar

@tartley @b0rk This is a nice idea because it also allows putting the label on refs which are not branches.

tartley,
@tartley@mastodon.social avatar

@tomasaschan @b0rk ah, genius, I hadn't realized but yes.

tomasaschan,
@tomasaschan@hachyderm.io avatar

@tartley @b0rk When I've done git tree visualizations historically I've tended to just render HEAD as any other ref, perhaps color coded differently. So HEAD points to some branch points to some commit, etc. Probably the most "true" way to represent it, but very space inefficient and noisy to look at.

aredridel,
@aredridel@kolektiva.social avatar

@b0rk The direction of arrows always gets me. "Descends from" is how it's implemented, but I always think of it in reverse, the arrow pointing to the current state.

secretgeek,
@secretgeek@mastodon.cloud avatar

@aredridel @b0rk my damn brain always finds a way to convince me that arrows should point the opposite direction. And just when I start to agree with myself then it comes up with an opposing argument and I’m back where I started.

kentindell,
@kentindell@mastodon.social avatar

@secretgeek @aredridel @b0rk I think it’s best to acknowledge defeat. Everyone does in the end.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Testmaggi
  • KbinCafe
  • Ask_kbincafe
  • TheResearchGuardian
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines