Skip to content

[Feature]: allow directories to be excluded when querying the git log to prevent unexpected side effects #174

Description

@purpleclay

Describe your feature

When querying the git log for commits, nsv will scan from the repository's root or a subdirectory when dealing with a mono repo. This will work in most scenarios unless dealing with a project with a Helm chart, for example, with its commit history. This can inadvertently skew the next calculated semantic version.

Git supports excluding subdirectories and files when querying the log. Extend nsv to support this functionality.

  • It should support excluding individual files or directories using the official git syntax of '(exclude):chart'.
  • It should also support the global exclusion of standard files or directories through a dedicated CLI flag or environment variable.

Any additional information?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
No status

Relationships

None yet

Development

No branches or pull requests

Issue actions