GitAliases.

GitDescribe(ICakeContext, DirectoryPath) Method

Summary

Describe current branch.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static string GitDescribe(this ICakeContext context, DirectoryPath repositoryDirectoryPath)

Examples

var result = GitDescribe(".");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
repositoryDirectoryPath DirectoryPath Path to repository.

Return Value

Type Description
string Described commit using the most recent tag reachable from it.