Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ Make sure to install the pre-commit hook to your local repository:

```shell
cp hooks/pre-commit .git/hooks/
# or ln -rs hooks/pre-commit "$hooks/"
```

When working with working trees
```shell
# Run in the main tree:
git config extensions.worktreeconfig true
```
```shell
# Run in each working tree
hooks="`git rev-parse --git-dir`/hooks"
git config --worktree core.hookspath "$hooks"
mkdir -p "$hooks"
cp hooks/pre-commit .git/hooks/
# or ln -rs hooks/pre-commit "$hooks/"
```

## Got an idea for a new project?
Expand Down