IRepositoryInfoProvider Interface

Summary

Description of a provider to retrieve repository information.
graph BT Type["IRepositoryInfoProvider"] class Type type-node

Syntax

public interface IRepositoryInfoProvider

Methods

Name Value Summary
GetCommitId(ICakeContext, DirectoryPath) string
Returns the SHA hash of the current commit.
GetRepositoryRemoteUrl(ICakeContext, DirectoryPath) Uri
Returns the URL of the remote repository.
GetRepositoryRootDirectory(ICakeContext, DirectoryPath) DirectoryPath
Returns the root directory of the current repository.

Extension Methods

Name Value Summary
NotNull<IRepositoryInfoProvider>(string) void
Throws an exception if the specified parameter's value is null.
GitHub