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