Hacker News new | ask | show | jobs
by aayjaychan 1427 days ago
You can use `hg commit --interactive` to use the the commit itself as the staging area. And I'd argue that's a better model because:

- It limits the amount of time changes are stored in an intermediate state, making it much less likely to interfere with other operations, like pulling and switching branches.

- You can use the same commands (and mental model) to manage the "staging area" and other commits.

- The history of staging and unstaging becomes actual history and can be recovered and shared.