summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-15 17:07:07 -0600
committerJeff Carr <[email protected]>2025-02-15 17:07:07 -0600
commit620569a97ca76be1f27c2394a044f0a250f3eb3b (patch)
treedae9fc823958265f9a5152a4dbcc42f12a4eeb59 /doCommit.go
parentec0fe277f676fc1f0234aec6e2db6caf7e965d3f (diff)
remote lots of cruft
Diffstat (limited to 'doCommit.go')
-rw-r--r--doCommit.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/doCommit.go b/doCommit.go
index c7c854a..e7ed01c 100644
--- a/doCommit.go
+++ b/doCommit.go
@@ -17,6 +17,7 @@ func doCommit() {
log.Info("todo: forge doesn't know how to work here yet")
okExit("")
}
+
if repo.GetCurrentBranchName() != repo.GetUserBranchName() {
me.found.Append(repo)
me.forge.PrintHumanTable(me.found)
@@ -25,15 +26,18 @@ func doCommit() {
log.Info("")
okExit("")
}
+
os.Setenv("LESS", "-XR")
if err := shell.Exec([]string{"git", "diff"}); err != nil {
badExit(err)
}
+
if argv.All {
if err := shell.ExecCheck([]string{"git", "add", "--all"}); err != nil {
badExit(err)
}
}
+
if err := shell.ExecCheck([]string{"git", "commit", "--all"}); err != nil {
badExit(err)
}