summaryrefslogtreecommitdiff
path: root/doCommit.go
diff options
context:
space:
mode:
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)
}