summaryrefslogtreecommitdiff
path: root/reloadCheckDirty.go
diff options
context:
space:
mode:
Diffstat (limited to 'reloadCheckDirty.go')
-rw-r--r--reloadCheckDirty.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/reloadCheckDirty.go b/reloadCheckDirty.go
index 980cd5f..d17045a 100644
--- a/reloadCheckDirty.go
+++ b/reloadCheckDirty.go
@@ -22,7 +22,8 @@ func (repo *Repo) IsDirty() bool {
return repo.Dirty
}
-// actually os.Exec('git')
+// returns true if the repo is dirty
+// runs os.Exec('git') every time
func (repo *Repo) CheckDirty() bool {
cmd := []string{"git", "status", "--porcelain"}
r := shell.PathRunLog(repo.FullPath, cmd, INFO)