zlacker

[return to "Stacked Diffs with git rebase —onto"]
1. polite+FBe[view] [source] 2025-12-05 11:10:35
>>flexdi+(OP)
This marker branch step feels like a workaround to a missing capability. It's something I can easily see one forgetting especially if they haven't been doing stacked diff workflows regularly.
◧◩
2. imron+cIe[view] [source] 2025-12-05 12:00:56
>>polite+FBe
The capability is there.

Just use git rebase --update-refs ...

◧◩◪
3. url00+Z5f[view] [source] 2025-12-05 14:18:58
>>imron+cIe
Wow you aren't wrong, the first blog post on Google talking about this is exactly what this complicated method does just built-in.
◧◩◪◨
4. imron+gWg[view] [source] 2025-12-05 23:17:50
>>url00+Z5f
To be fair --update-refs was only added in git 2.38 (released in 2022) so it’s likely that OPs workflow came about before this flag was introduced.
[go to top]