Skip to content

Commit

Permalink
Added a better explanation in README swellaby#137
Browse files Browse the repository at this point in the history
- Better explanation for multiple commands in Hooks in the README.md
  • Loading branch information
Mastermindaxe committed Feb 1, 2021
1 parent e284e15 commit 9b10632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ post-commit = "echo yay"
verbose = true
```
### Hooks
Under the `[hooks]` table, you can add an entry for any and every git hook you want to run by adding a key using the name of the [git hook][git hooks], and then specify the command/script you want to run for that hook. Multiple commands in a form of a toml array are also allowed. Whenever that git hook is triggered, `rusty-hook` will run your specified command!
Under the `[hooks]` table, you can add an entry for any and every git hook you want to run by adding a key using the name of the [git hook][git hooks], and then specify the command/script you want to run for that hook. Multiple commands in a form of a toml array or via command chaining using `&&` are also allowed. Whenever that git hook is triggered, `rusty-hook` will run your specified command!

#### Using git arguments
In git hook commands, any instance of `%rh!` will be replaced by the arguments that git passes to this hook.
Expand Down

0 comments on commit 9b10632

Please sign in to comment.