GitAliases.

GitHasStagedChanges(ICakeContext, DirectoryPath) Method

Summary

Checks if a repository contains staged changes.
Assembly
Cake.Git.dll
Namespace
Cake.Git
Containing Type
GitAliases

Syntax

public static bool GitHasStagedChanges(this ICakeContext context, DirectoryPath path)

Examples

var result = GitHasStagedChanges("c:/temp/cake");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
path DirectoryPath Path to the repository to check.

Return Value

Type Description
bool True if the Git repository contains staged changes.