Skip to content

Commit

Permalink
docs: update info about merge order (#838)
Browse files Browse the repository at this point in the history
* docs: update info about merge order

* docs: add a summary
  • Loading branch information
mrexox authored Oct 10, 2024
1 parent 1c92f5b commit 468bf01
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ extends:
- ../extend.yml
```

> [!IMPORTANT]
> The extends will be merged to the main configuration in your file. Here is the order of settings applied:
>
> - `lefthook.yml` – main config file
> - `extends` – configs specified in [extends](#extends) option
> - `remotes` – configs specified in [remotes](#remotes) option
> - `lefthook-local.yml` – local config file
>
> So, `extends` override settings from `lefthook.yml`, `remotes` override `extends`, and `lefthook-local.yml` can override everything.

### `min_version`

If you want to specify a minimum version for lefthook binary (e.g. if you need some features older versions don't have) you can set this option.
Expand Down

0 comments on commit 468bf01

Please sign in to comment.