Skip to content

Commit

Permalink
README update to highlight hook from classpath
Browse files Browse the repository at this point in the history
  • Loading branch information
nhojpatrick authored and Rudi Kershaw committed Mar 22, 2021
1 parent 54b206d commit 88c3552
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ A common use-case might be to install local git hooks by setting the `core.hooks
<custom.configuration>true</custom.configuration>
</gitConfig>
</configuration>
<dependencies>
<dependency>
<groupId>my.company</groupId>
<artifactId>company-git-hooks</artifactId>
<version>[1.2.3,)</version>
<dependency>
</dependencies>
<executions>
<execution>
<goals>
Expand All @@ -55,8 +62,8 @@ When you run your project build the plugin will configure git to run hooks out o
<configuration>
<installHooks>
<!-- The location of a git hook to install into the default hooks directory. -->
<pre-commit>path/to/your/hook.sh</pre-commit>
<commit-msg>path/to/your/hook.sh</commit-msg>
<pre-commit>file_path/to/your/hook.sh</pre-commit>
<commit-msg>class_path/package/hook.sh</commit-msg>
</installHooks>
</configuration>
...
Expand Down

0 comments on commit 88c3552

Please sign in to comment.