News for hackers. Stuff that matters.
Re: by ISL on Tuesday November 15, 2022 @03:42PM (#33614728)
How do you construct a commit, in order to commit regularly, without having a staging environment in which to compose that commit?

Is the branch-tip simply the staging area? What if you're only half-done with that final commit?

Re: by mitrandir77 on Tuesday November 15, 2022 @04:37PM (#33615381)
You `sl commit` that half-done work anyway and then iterate by running `sl amend` many times until your commit is finished. In case you want to amend just part of changes us `sl amend -i`

https://sapling-scm.com/docs/commands/amend

Re: by tome on Wednesday November 16, 2022 @02:29PM (#33629108)
> How do you construct a commit, in order to commit regularly, without having a staging environment in which to compose that commit?

In git, with `git commit --patch`