pre-commit vs Upsource: What are the differences?
What is pre-commit? A slightly improved pre-commit hook for git. pre-commit checks your code for errors before you commit it. pre-commit is configurable.
What is Upsource? Self-hosted Git, Mercurial, Subversion and Perforce repository browser and code review tool. Upsource summarizes recent changes in your repository, showing commit messages, authors, quick diffs, links to detailed diff views and associated code reviews. A commit graph helps visualize the history of commits, branches and merges in your repository.
pre-commit and Upsource are primarily classified as "Git" and "Code Collaboration & Version Control" tools respectively.
Some of the features offered by pre-commit are:
- debugger: make sure you don't commit a debugger statement
- tabs: make sure your code uses leading spaces instead of tabs
- whitespace: make sure you don't commit trailing whitespace
On the other hand, Upsource provides the following key features:
- Instantly access all your projects
- Keep track of code changes
- Use code insight in Java projects
pre-commit is an open source tool with 756 GitHub stars and 96 GitHub forks. Here's a link to pre-commit's open source repository on GitHub.