@argv_minus_one@mastodon.sdf.org
Post #1658298
2026-03-31 18:42 UTC
@gnuplusknoppers @andrewt
I actually dislike anonymous branches (at least in Mercurial; Jujitsu appears similar from the docs) because the fact that they're *not* considered garbage makes it more difficult and dangerous to get rid of commits I don't want.
With normal Git, a commit is basically gone once nothing points to it, except it's still in the reflog for a while, so if I make a mistake I can get it back. If anonymous branches are considered non-garbage, then I must actually delete them.
Replies (1)
-
@gnuplusknoppers@troet.cafe 2026-03-31 20:05
@argv_minus_one @andrewt you don't have anonymous branches in the literal sense in JJ. Commits (changes) just exist. If you want you can create bookmarks pointing to a change, which translates as a branch into Git. This is also how you'd work with people using Git. You can -of course- accumulate a bunch of unmerged local changes over time, depending how you use the tool. But it'd be relatively easy to just abandon every local change that isn't on a branch made before [cutoff point].