C# Class GitVersion.GitRepoMetadataProvider

Afficher le fichier Open project: GitTools/GitVersion Class Usage Examples

Private Properties

Свойство Type Description
GetMergeCommitsForBranch List

Méthodes publiques

Méthode 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

Méthode Description
GetMergeCommitsForBranch ( Branch branch ) : List

Method Details

FindCommitBranchWasBranchedFrom() public méthode

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 [
Résultat GitVersion.BranchCommit

FindMergeBase() public méthode

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
Résultat LibGit2Sharp.Commit

GetBranchesContainingCommit() public méthode

public GetBranchesContainingCommit ( [ commit, IList branches, bool onlyTrackedBranches ) : IEnumerable
commit [
branches IList
onlyTrackedBranches bool
Résultat IEnumerable

GetVersionTagsOnBranch() public méthode

public GetVersionTagsOnBranch ( Branch branch, string tagPrefixRegex ) : IEnumerable
branch Branch
tagPrefixRegex string
Résultat IEnumerable

GitRepoMetadataProvider() public méthode

public GitRepoMetadataProvider ( IRepository repository ) : System
repository IRepository
Résultat System