- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
A more apt description would be “Fossil Versus Git, according to Fossil.”
One check-out per repository vs Many check-outs per repository
Git has worktrees…
Commit first vs Test first
What?
They provide a link to the section where they elaborate on “commit first vs test first”, here is the relevant text
Instead of jumping straight to the commit step, Fossil applies the proposed merge to the local working directory only, requiring a separate check-in step before the change is committed to the repository. This gives you a chance to test the change first, either manually or by running your software’s automatic tests. (Ideally, both!) Thus, Fossil doesn’t need rebase, squashing, reset --hard, or other Git commit mutating mechanisms
Git has pre-commit hooks?
And
git merge --no-commit
to do whatever you want on the proposed merge before actually creating the commit. Test or whatever else.Git has a bunch of hooks. https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
I love that fossil exists. I would never use it, but I’m glad cranks have something to work on.