예제 #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);
    }
예제 #2
0
 public static bool CheckUncommittedChanges()
 {
     return(GitTasks.GitHasCleanWorkingCopy());
 }