Hacker News new | ask | show | jobs
by ISL 1312 days ago
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?

2 comments

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

> 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`