GitAliases.

GitBranches(ICakeContext, DirectoryPath) Method

Summary

Gets a list of all branches from the repository.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static ICollection<GitBranch> GitBranches(this ICakeContext context, DirectoryPath repositoryDirectoryPath)

Examples

GitBranches("c:/temp/cake");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

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

Return Value

Type Description
ICollection<GitBranch>