RepositoryStore Class

Namespace
GitVersion
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IRepositoryStore"] click Interface0 "/api/GitVersion.Common/IRepositoryStore" Type["RepositoryStore"] class Type type-node

Syntax

public class RepositoryStore : IRepositoryStore

Constructors

Methods

Name Value Summary
DetermineIncrementedField(BaseVersion, GitVersionContext) VersionField?
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, EffectiveConfiguration) 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
MaybeIncrement(BaseVersion, GitVersionContext) SemanticVersion

Extension Methods

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