This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Git.
Summary
Checks if a repository contains uncommited changes.
Syntax
public static bool GitHasUncommitedChanges(this ICakeContext context, DirectoryPath path)
Examples
var result = GitHasUncommitedChanges("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 uncommited changes. |