Skip to content

Commit

Permalink
docs: fix the documentation for --include-path
Browse files Browse the repository at this point in the history
Related to orhun#48
  • Loading branch information
aminya authored Mar 21, 2024
1 parent 172cae1 commit 6060521
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions website/docs/usage/monorepos.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ sidebar_position: 5

# 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
git cliff --include-path "**/*.toml" --include-path "*.md"
git cliff --exclude-path ".github/*"
cd packages/some_library
git cliff --include-path "packages/some_library/**/*" --repository "../../"
```

```bash
cd packages/some_library
git cliff --include-path "packages/some_library/**/*" --repository "../../" --exclude-path ".github/*"
```

0 comments on commit 6060521

Please sign in to comment.