sapling
sapling copied to clipboard
Equivalence between `git reset` and `sl hide` is wrong
In the Git cheat sheet, the following are equated:
git reset --hard COMMITsl hide COMMIT
This is wrong. The former resets to COMMIT, essentially deleting commits up to but not including COMMIT, while sl hide will also delete the target commit.
Git doesn't really have an operation for deleting commits, unless we're talking about git gc. It just hides all commits which are not part of a branch or the current head.