Beispiel #1
0
    public bool EnsureNoUncommittedChanges()
    {
        if (!GitTasks.GitHasCleanWorkingCopy())
        {
            throw new Exception(
                      "There are uncommitted changes in the working tree. Please commit or remove these before proceeding.");
        }

        return(true);
    }
Beispiel #2
0
 public static bool CheckUncommittedChanges()
 {
     return(GitTasks.GitHasCleanWorkingCopy());
 }