summaryrefslogtreecommitdiffstats
path: root/gitcommands.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-09 19:32:56 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-09 19:33:35 +1000
commitd08e3a55a153912ad274e6dcd71516b0f13db920 (patch)
tree29c7386dc9c3d13fadbeb2170500dc1df5b5d4f0 /gitcommands.go
parent2cd0bd812542e031b28a98c4d546473fa9743c5b (diff)
WIP hard reset
Diffstat (limited to 'gitcommands.go')
-rw-r--r--gitcommands.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitcommands.go b/gitcommands.go
index 08a2ec411..fbe8ddae5 100644
--- a/gitcommands.go
+++ b/gitcommands.go
@@ -652,3 +652,7 @@ func getAndMergeFetchedBranches(branches []Branch) []Branch {
}
return branches
}
+
+func gitResetHard() error {
+ return w.Reset(&git.ResetOptions{Mode: git.HardReset})
+}