I came into the comments specifically to ask if this flag existed. I feel bad that the author developed this whole flow just because they didn't know about this, but that's pretty common with git.
discoverability is a big problem, especially for CLI tools which can't afford to show small hints or "what's new" popups. I myself learned it from someone else, not docs.
update-refs works only in a narrow case when every branch starts form the tip of a previous. Your helper might still be useful if it properly "replants" whole tree keeping its structure.
happytoexplain|2 months ago
fwip|2 months ago
onionisafruit|2 months ago
I used to dutifully read release notes for every git release, but stopped at some point. Apparently that point was more than three years ago.
nopurpose|2 months ago
ananthakumaran|2 months ago
imron|2 months ago
duskdozer|2 months ago
nopurpose|2 months ago