C# Class GitVersion.GitRepoMetadataProvider

Show file Open project: GitTools/GitVersion Class Usage Examples

Private Properties

Property Type Description
GetMergeCommitsForBranch List

Public Methods

Method Description
FindCommitBranchWasBranchedFrom ( [ branch ) : GitVersion.BranchCommit

Find the commit where the given branch was branched from another branch. If there are multiple such commits and branches, returns the newest commit.

FindMergeBase ( Branch branch, Branch otherBranch ) : Commit

Find the merge base of the two branches, i.e. the best common ancestor of the two branches' tips.

GetBranchesContainingCommit ( [ commit, IList branches, bool onlyTrackedBranches ) : IEnumerable
GetVersionTagsOnBranch ( Branch branch, string tagPrefixRegex ) : IEnumerable
GitRepoMetadataProvider ( IRepository repository ) : System

Private Methods

Method Description
GetMergeCommitsForBranch ( Branch branch ) : List

Method Details

FindCommitBranchWasBranchedFrom() public method

Find the commit where the given branch was branched from another branch. If there are multiple such commits and branches, returns the newest commit.
public FindCommitBranchWasBranchedFrom ( [ branch ) : GitVersion.BranchCommit
branch [
return GitVersion.BranchCommit

FindMergeBase() public method

Find the merge base of the two branches, i.e. the best common ancestor of the two branches' tips.
public FindMergeBase ( Branch branch, Branch otherBranch ) : Commit
branch Branch
otherBranch Branch
return LibGit2Sharp.Commit

GetBranchesContainingCommit() public method

public GetBranchesContainingCommit ( [ commit, IList branches, bool onlyTrackedBranches ) : IEnumerable
commit [
branches IList
onlyTrackedBranches bool
return IEnumerable

GetVersionTagsOnBranch() public method

public GetVersionTagsOnBranch ( Branch branch, string tagPrefixRegex ) : IEnumerable
branch Branch
tagPrefixRegex string
return IEnumerable

GitRepoMetadataProvider() public method

public GitRepoMetadataProvider ( IRepository repository ) : System
repository IRepository
return System