Skip to content

Commit d0af26d

Browse files
authored
Update README (#5)
1 parent 4efc05c commit d0af26d

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ This is a small guide to present it:
88
- Please see [CODE OF CONDUCT](CODE_OF_CONDUCT.md)
99
- Be peaceful and patient
1010

11-
**Enjoy coding ❤️**!
11+
**Enjoy coding ❤️**

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ to tell Git to run `git hooks trigger <hook-name>` command.
3131
On trigger the hooks, `git-hooks` looks in git configs for list of hooks needed to execute.
3232

3333
For example for `pre-commit` hooks look like:
34-
~~~
34+
~~~gitconfig
3535
[hooks "pre-commit"]
3636
# Using path to directory, `git-hooks` will execute scripts which name ends to hook name,
3737
# or all executable files in sub-directory with name `<hook-name>.d`.
@@ -55,7 +55,7 @@ _A relative path is taken as relative to the directory where the hooks are run
5555
([see more in documentation](https://git-scm.com/docs/githooks#_description))._
5656

5757
The two special sections in configs are used by `git-hooks` to look for common hooks for all events:
58-
~~~
58+
~~~gitconfig
5959
[hooks "pre-trigger"]
6060
# Trigger these hooks before specific hooks.
6161
foo="~/global-hooks"
@@ -68,7 +68,7 @@ The two special sections in configs are used by `git-hooks` to look for common h
6868
Keep in mind, The config `core.hooksPath` overrides the Git config and it would not execute
6969
scripts from `.git/hooks` directory inside your project. If you have hooks in that directory,
7070
you have to add it config, i.e.
71-
~~~
71+
~~~gitconfig
7272
[hooks "post-trigger"]
7373
default=".git/hooks"
7474
~~~
@@ -84,14 +84,14 @@ The `git-hooks` respects the config location supported by `git-config`
8484
([see more in documentation](https://git-scm.com/docs/git-config)).
8585

8686
Example how ot install `git-hooks` globally:
87-
~~~
87+
~~~bash
8888
git hooks install --global
8989
~~~
9090

9191
## Documentation
9292

9393
For more details see `git-hooks` help:
94-
~~~
94+
~~~bash
9595
git hooks --help
9696
~~~
9797

@@ -104,5 +104,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT
104104
Thanks to [Benjamin Meyer](https://benjamin-meyer.blogspot.com/2010/06/managing-project-user-and-global-git.html)
105105
for inspiration.
106106

107+
**Enjoy coding ❤️**
108+
107109
[ico-license]: https://img.shields.io/badge/License-BSD%202--Clause-blue.svg?style=for-the-badge
108110
[link-license]: LICENSE

src/git-hooks

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ ${FCY}Options:${NC}
8282
${FCG}-v, -vv, -vvv${NC} Control verbose mode.
8383
8484
$GIT_HOOKS_URL
85-
"
85+
86+
> Enjoy coding ❤️"
8687

8788
REQUIREMENTS=(
8889
"pwd"

0 commit comments

Comments
 (0)