Example
For example, the version of “Package1” will be 1.2.4 and “Package2” will be 1.3.0 from the following commits:
$ git log --name-only # filter out unimportant bits
fix: fixing package1
src/package1/file1.txt
feat: fixing package2
src/package2/file2.txt
fix: sweeping change
src/package1/file.txt
src/package2/file.txt
feat: current version # tagged "Package1-1.2.3" and "Package2-1.2.3"
src/package1/file.txt
src/package2/file.txt
In the above example, the second commit is ignored while calculating the “Package1” commits which will have a new version of “1.3.0” because of the “feat” commit. While calculating “Package2”, the version will be “1.2.4” because of the “fix” in the second commit because the first is ignored.
If a version cannot be found, this will use 0.0.1
.
Metadata
Project
- Project Home
- Documentation
- Repository
- Issues
- Project ID: 019530c5-8880-77e3-9e41-83db8b5a49ba