¿Plugin?: git-linearize and/or lucky_commit #1107
feefladder
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First off: I really like git-branchless, in how it enables your git tree to actually look like a tree:
in stead of not-a-tree:
especially, a git-branchless tree looks like a scotch pine:

In that branches at the bottom die off and then you'll end up with a thin, long trunk with few branches at the top. However, how do you signal to people that a specific commit is unlikely to be changed? (except for fast-forwarding the main branch).
Well, what I use is extremely-linear, so your shorthashes look like:
Now, because it takes some effort to use lucky-commit before changing, having a formatted shorthash is a "soft" way of saying: This commit is rather final.
Here comes the catch: After some sadness with rebasing, I've rewritten extremely-linear to use git-branchless. It works rather nicely, but some things are still missing:
git sl
, but still show up ingit log --graph --all
.git log --first-parent main
<- bash isn't ideal for BFS, but it is nice for calling Git commands?lucky_commit is written in Rust, just like git-branchless. So maybe this could become a plugin or extension to git-branchless? Well, anyways, this post is also meant to be semi-humorous, I hope that came across 😆
Beta Was this translation helpful? Give feedback.
All reactions