summaryrefslogtreecommitdiffstats
path: root/gitcommands.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-05-26 15:44:44 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-05-26 15:44:44 +1000
commit10fd353a50c894dc8e5bb68c0b939be63846a6c0 (patch)
tree97547779e2bd1eb74b8afd69d41323785b8c43e5 /gitcommands.go
parentbb12309c7c834f8b0b12d7942cfee0d071242ad0 (diff)
More stuff
Diffstat (limited to 'gitcommands.go')
-rw-r--r--gitcommands.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/gitcommands.go b/gitcommands.go
index fbfded157..b4fca3835 100644
--- a/gitcommands.go
+++ b/gitcommands.go
@@ -245,6 +245,11 @@ func gitCommit(message string) error {
return err
}
+func gitPull() error {
+ _, err := runDirectCommand("git pull --no-edit")
+ return err
+}
+
const getBranchesCommand = `set -e
git reflog -n100 --pretty='%cr|%gs' --grep-reflog='checkout: moving' HEAD | {
seen=":"