GetBranchesContainingCommit(ICommit, IEnumerable<IBranch>, bool) Method

Summary

Returns branches that contain the given commit in their history.
Assembly
GitVersion.Core.dll
Namespace
GitVersion
Containing Type
IRepositoryStore

Syntax

IEnumerable<IBranch> GetBranchesContainingCommit(ICommit commit, IEnumerable<IBranch> branches = null, bool onlyTrackedBranches = false)

Parameters

Name Type Description
commit ICommit
branches IEnumerable<IBranch>
onlyTrackedBranches bool

Return Value

Type Description
IEnumerable<IBranch>