Skip to content
README.md 1.12 KiB
Newer Older
**This project has been discontinued and has been replaced by
[pre-commit-hooks](https://git.shore.co.il/nimrod/pre-commit-hooks).**

nimrod's avatar
nimrod committed
[![pipeline status](https://git.shore.co.il/nimrod/git-pre-commit/badges/master/pipeline.svg)](https://git.shore.co.il/nimrod/git-pre-commit/-/commits/master)
nimrod's avatar
nimrod committed

[Pre-commit](http://pre-commit.com/) Git related hooks.
nimrod's avatar
nimrod committed

- `merge-conflict`: Checks if your branch has merge conflicts with the master
  branch.

## Installation

Add the following to your project's `.pre-commit-config.yaml`:

nimrod's avatar
nimrod committed
```
-    repo: https://git.shore.co.il/nimrod/git-pre-commit.git
     sha: v0.1.1
     hooks:
     - id: merge-conflict
       args: ['production'] # In case the branch to check against is NOT master.
       always_run: True
```
nimrod's avatar
nimrod committed

## License

This software is licensed under the MIT license (see the `LICENSE.txt` file).

## Author information

Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
nimrod's avatar
nimrod committed
[website](https://www.shore.co.il/). Patches are welcome via
[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
nimrod's avatar
nimrod committed
is located at: <https://git.shore.co.il/explore/>.