arxanas / git-branchless

High-velocity, monorepo-scale workflow for Git
Apache License 2.0
3.43k stars 84 forks source link

git-branchless accumulates too many anti-GC references #1125

Open arxanas opened 10 months ago

arxanas commented 10 months ago

Description of the bug

Over 8-ish months with my current repo, git-branchless has accumulated something like 100k references under refs/branchless/*. This pessimizes any operation that traverses all references.

Expected behavior

git branchless gc should compact references so that there aren't 100k of them. Possible procedure:

Actual behavior

git branchless gc only deletes references to commits that are no longer visible.

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

No response

Version of git

No response