upvote
Jujutsu is perfect for that - you create new changeset upfront, providing message at the same time (which can be later amended as needed). Feels so much more logical to declare the topic first, rather than come back to some accidentally uncommitted changes and wonder what was doing there.
reply
Exactly! For anyone interested, I guess the previous comment refers to the Squash Workflow, which happens to be very idiomatic in Jujutsu

https://arialdo.codeberg.page/ju-ju-tsu/tutorial/moving/squa...

reply
"Topic" is usually covered by branch name. Commit message goes with a set of code changes, it feels more logical to me for the message to describe the actual code as it was written (as it might have changed from the idea phase).
reply
In Git, but workflows in Jujutsu aren't necessarily the same as in Git.

Branches for example aren't named in Jujutsu. You can bookmark them which gives them a name in some sense... but that's an optional thing you can do, often as a concession to centralized Git interoperability.

So in this case the parent to your post isn't thinking about it wrong given the context and such workflows have their advantages I've found.

reply
Also branch names are extremely limited in what they can describe.
reply
You can start to write the commit message first in Git too. (And I do that.)
reply
Agreed. You can preplan a bunch of small steps and then fill in changes.
reply
On hindsight that should be obvious! Pre-write your commit message, because of course you know what you are going to work on!
reply
BDD. Absolutely changed my world
reply
As in gherkin/cucumber? Or more generally?

(the language... I, for the love of it, can't remember which is which)

reply