Table of Contents

Class GitTool

Namespace
NoeticTools.Git2SemVer.Core.Tools.Git
Assembly
NoeticTools.Git2SemVer.Core.dll
[RegisterTransient]
public sealed class GitTool : IGitTool, IDisposable
Inheritance
GitTool
Implements
Inherited Members

Constructors

GitTool(ITagParser)

public GitTool(ITagParser tagParser)

Parameters

tagParser ITagParser

Properties

BranchName

The current head's branch name.

public string BranchName { get; }

Property Value

string

Cache

public ICommitsCache Cache { get; }

Property Value

ICommitsCache

HasLocalChanges

True if there are uncommited local changes.

public bool HasLocalChanges { get; }

Property Value

bool

Head

public Commit Head { get; }

Property Value

Commit

RepositoryDirectory

public string RepositoryDirectory { get; set; }

Property Value

string

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Get(CommitId)

public Commit Get(CommitId commitId)

Parameters

commitId CommitId

Returns

Commit