GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

Feature: Support ignoring (filtering) paths in git tree

Open Roei-Levi opened this issue 9 months ago • 37 comments

Description

This PR adds a new option to the git version config, allowing users to filter specific paths in the directory tree using the "ignore/paths" config.

Related Issue

Resolves #2436

Motivation and Context

This feature enables better versioning capability when using GitVersion in a monorepo, where different components need to be versioned independently. It is based on work done previously and mentioned in the related issue #2436. See discussion for more info.

How Has This Been Tested?

All existing tests pass. New sanity tests were added and passed. Additional tests will be included before closing this PR.

Checklist:

  • [X] My code follows the code style of this project.
  • [X] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

Roei-Levi avatar Feb 14 '25 06:02 Roei-Levi