C# Class GitVersion.VersionCalculation.TrackReleaseBranchesVersionStrategy

Active only when the branch is marked as IsDevelop. Two different algorithms (results are merged):

Using VersionInBranchNameBaseVersionStrategy: Version is that of any child branches marked with IsReleaseBranch (except if they have no commits of their own). BaseVersionSource is the commit where the child branch was created. Always increments.

Using TaggedCommitVersionStrategy: Version is extracted from all tags on the master branch which are valid. BaseVersionSource is the tag's commit (same as base strategy). Increments if the tag is not the current commit (same as base strategy).

Inheritance: GitVersion.VersionCalculation.BaseVersionStrategy
Datei anzeigen Open project: GitTools/GitVersion

Public Methods

Method Description
GetVersions ( GitVersionContext context ) : IEnumerable

Private Methods

Method Description
GetReleaseVersion ( GitVersionContext context, Branch releaseBranch ) : IEnumerable
MasterTagsVersions ( GitVersionContext context ) : IEnumerable
ReleaseBranchBaseVersions ( GitVersionContext context ) : IEnumerable

Method Details

GetVersions() public method

public GetVersions ( GitVersionContext context ) : IEnumerable
context GitVersionContext
return IEnumerable