GitAliases.

GitLog(ICakeContext, DirectoryPath, int) Method

Summary

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

Syntax

public static ICollection<GitCommit> GitLog(this ICakeContext context, DirectoryPath repositoryDirectoryPath, int count)

Examples

var result = GitLog("c:/temp/cake", 5);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Path to repository.
count int Number of commits to fetch.

Return Value

Type Description
ICollection<GitCommit> Commits in the repository passed in repositoryDirectoryPath.