summaryrefslogtreecommitdiff
path: root/reloadCheckDirty.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 02:48:03 -0500
committerJeff Carr <[email protected]>2025-10-03 02:48:03 -0500
commitd91fa140ba3808b056ca2c2aed126a978601dfe3 (patch)
tree5230e1757df7187c706d27cbdeac141dcc442c33 /reloadCheckDirty.go
parent966c40f2c4c80fcecc8d451293b6d512bc9f6d91 (diff)
common 'git commit' function
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)