3 ms·
I used hg for years at BigCo, and it’s good, but damn did I miss the git index. Which is kind of amusing given that the git index took a bit of getting used to.
by benreesman 4y ago
I used hg for years at BigCo, and it’s good, but damn did I miss the git index. Which is kind of amusing given that the git index took a bit of getting used to.
- rubyist5eva 4y agoThe index is an anti-feature in my opinion. People commit in chunks with no guarantees that these commits that are valid all together are valid individually.
- throw0101a 4y ago> […] did I miss the git index. Perhaps: * https://www.mercurial-scm.org/wiki/GitConcepts#Git.27s_staging_area https://www.mercurial-scm.org/wiki/GitConcepts#Git.27s_stagi...
- aayjaychan 4y agoYou 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.