diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-09 19:32:56 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-09 19:33:35 +1000 |
commit | d08e3a55a153912ad274e6dcd71516b0f13db920 (patch) | |
tree | 29c7386dc9c3d13fadbeb2170500dc1df5b5d4f0 /gitcommands.go | |
parent | 2cd0bd812542e031b28a98c4d546473fa9743c5b (diff) |
WIP hard reset
Diffstat (limited to 'gitcommands.go')
-rw-r--r-- | gitcommands.go | 4 |
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}) +} |