You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, tags that were created for a subproject needed to include a
commit that modified a file within the path. This is no longer required
and as long as the tag is created for the project's tag prefix, it will
be counted as part of the project.
For example, for project hash-utils with tag prefix 'hash', we have
three commits:
1. An empty commit tagged 'hash-0.3'
2. A commit that modifies a file in the 'hash-utils' directory
3. A commit that does not modify any files in 'hash-utils'
Commits 1 and 2 would be counted, but 3 would not. The resulting
version number will be 0.3.1.
This is currently using an implementation detail regarding how JGit's
LogCommand returns its result. See eclipse-jgit/jgit#149
varchangeLogName = Util.replace(git.getRepository().getFullBranch(), s -> s.replace("refs/heads/", "")); //Generate a changelog name from the current branch.
46
46
47
-
varlog = GitUtils.getCommitLogFromTo(git, start, end, filter); //Get all commits between the start and the end.
47
+
vartagMap = GitUtils.getCommitToTagMap(git, tagPrefix); //Grab a map between commits and tag names.
48
+
varlog = GitUtils.getCommitLogFromTo(git, tagMap, start, end, tagPrefix, filter); //Get all commits between the start and the end.
48
49
varlogList = newArrayList<RevCommit>(); //And generate a list from it.
49
50
log.forEach(logList::add);
50
51
51
-
vartagMap = GitUtils.getCommitToTagMap(git, tagPrefix); //Grab a map between commits and tag names.
52
52
varversionMap = GitUtils.buildVersionMap(logList, tagMap); //And generate a version map from this. Mapping each commit to a unique version.
53
53
varprimaryVersionMap = GitUtils.getPrimaryVersionMap(logList, tagMap); //Then determine which commits belong to which identifiable-version mappings.
thrownewGitVersionExceptionInternal("Couldn't find any commits with the following parameters: Tag %s, Include Paths [%s], Exclude Paths [%s]".formatted(tag, String.join(", ", includePaths), String.join(", ", excludePaths)));
thrownewGitVersionExceptionInternal("Failed to count commits", e);
306
+
thrownewGitVersionExceptionInternal("Failed to count commits with the following parameters: Tag %s, Include Paths [%s], Exclude Paths [%s]".formatted(tag, String.join(", ", includePaths), String.join(", ", excludePaths)));
0 commit comments