Replies: 1 comment
-
git-branchless installs a However, this hook/command only cleans up references which point to abandoned commits. By itself, the number of references that git-branchless installs is more than necessary just to keep the commits live. One alternative approach to "compact" the references would be to only create/preserve references to the "heads" of the live commits (those which have no descendants), which would be sufficient to keep everything live, but also substantially reduce the number of live commits. The current logic is fairly straightforward, and I think the above change would not be difficult to implement, if you're interested. git-branchless/git-branchless-lib/src/core/gc.rs Lines 23 to 128 in 3d8b480 |
Beta Was this translation helpful? Give feedback.
-
Should we expect git-branchless to automatically cleanup lingering refs/branchless/xxx entries over time at all?
Beta Was this translation helpful? Give feedback.
All reactions