mirror of
https://github.com/orhun/git-cliff.git
synced 2024-10-26 16:04:18 +03:00
docs(website): fix the documentation for --include-path
(#567)
* docs: fix the documentation for `--include-path` Related to #48 * style: update styling --------- Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
This commit is contained in:
parent
172cae1650
commit
4a7aa7e91f
@ -4,9 +4,16 @@ sidebar_position: 5
|
|||||||
|
|
||||||
# Monorepos
|
# Monorepos
|
||||||
|
|
||||||
You can generate a changelog scoped to a specific directory:
|
You can generate a changelog scoped to a specific directory via `--include-path` and `--exclude-path`.
|
||||||
|
|
||||||
|
This requires changing the current working directory to the target folder. The included/excluded paths must be relative to the repository's root.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git cliff --include-path "**/*.toml" --include-path "*.md"
|
cd packages/some_library
|
||||||
git cliff --exclude-path ".github/*"
|
git cliff --include-path "packages/some_library/**/*" --repository "../../"
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd packages/some_library
|
||||||
|
git cliff --include-path "packages/some_library/**/*" --repository "../../" --exclude-path ".github/*"
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user