IRepositoryStore Interface

Namespace
GitVersion.Common
Implementing Types
graph BT Type["IRepositoryStore"] class Type type-node Implementing0["RepositoryStore"]-.->Type click Implementing0 "/api/GitVersion/RepositoryStore"

Syntax

public interface IRepositoryStore

Methods

Name Value Summary
ExcludingBranches(IEnumerable<IBranch>) IEnumerable<IBranch>
FindBranch(string) IBranch
FindCommitBranchWasBranchedFrom(IBranch, Config, IBranch[]) BranchCommit
Find the commit where the given branch was branched from another branch. If there are multiple such commits and branches, tries to guess based on commit histories.
FindMainBranch(Config) IBranch
FindMergeBase(IBranch, IBranch) ICommit
Find the merge base of the two branches, i.e. the best common ancestor of the two branches' tips.
FindMergeBase(ICommit, ICommit) ICommit
GetBaseVersionSource(ICommit) ICommit
GetBranchesContainingCommit(ICommit, IEnumerable<IBranch>?, bool) IEnumerable<IBranch>
GetBranchesForCommit(ICommit) IEnumerable<IBranch>
GetChosenBranch(Config) IBranch
GetCommitLog(ICommit, ICommit) IEnumerable<ICommit>
GetCurrentCommit(IBranch, string) ICommit
GetCurrentCommitTaggedVersion(ICommit, string, bool) SemanticVersion
GetExcludedInheritBranches(Config) IEnumerable<IBranch>
GetMainlineBranches(ICommit, Config, IEnumerable<KeyValuePair<string, BranchConfig>>?) IDictionary<string, List<IBranch>>
GetMainlineCommitLog(ICommit, ICommit) IEnumerable<ICommit>
GetMergeBaseCommits(ICommit, ICommit, ICommit) IEnumerable<ICommit>
GetNumberOfUncommittedChanges() int
GetReleaseBranches(IEnumerable<KeyValuePair<string, BranchConfig>>) IEnumerable<IBranch>
GetTargetBranch(string) IBranch
GetValidVersionTags(string, DateTimeOffset?) IEnumerable<(ITag Tag, SemanticVersion Semver, ICommit Commit)>
GetVersionTagsOnBranch(IBranch, string) IEnumerable<SemanticVersion>
IsCommitOnBranch(ICommit, IBranch, ICommit) bool

Extension Methods

Name Value Summary
GetProperties() IEnumerable<KeyValuePair<string, string>>
NotNull<IRepositoryStore>(string) T
GitHub