RepositoryInfo Class

Summary

Identifies the remote repository and the specific commit or branch to version.
Assembly
GitVersion.Core.dll
Namespace
GitVersion
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IEquatable<RepositoryInfo>"] Type["RepositoryInfo"] class Type type-node

Syntax

public class RepositoryInfo : IEquatable<RepositoryInfo>

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Properties

Name Value Summary
ClonePath string
Gets or sets the local path to which the repository should be cloned when using dynamic repositories.
CommitId string
Gets or sets a specific commit SHA to use instead of the current HEAD.
EqualityContract Type
TargetBranch string
Gets or sets the name of the branch to calculate the version for.
TargetUrl string
Gets or sets the URL of the remote repository to clone or fetch from.

Methods

Operators

Name Value Summary
operator !=(RepositoryInfo, RepositoryInfo) bool
operator ==(RepositoryInfo, RepositoryInfo) bool

Extension Methods

Name Value Summary
NotNull<RepositoryInfo>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.