Cake - API - GitAliases.GitLogLookup(ICakeContext, DirectoryPath, string) Method

GitAliases.

GitLogLookup(ICakeContext, DirectoryPath, string) Method

Summary

Get specific commit.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static GitCommit GitLogLookup(this ICakeContext context, DirectoryPath repositoryDirectoryPath, string commitId)

Examples

var result = GitLogLookup("c:/temp/cake", "commit id");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Path to repository.
commitId string Commit id to lookup.

Return Value

Type Description
GitCommit The path to the created repository.