summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-03-18 21:40:32 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-03-23 13:26:17 +1100
commitacfc961909a2b21f840358738be4f16d7efa3ca4 (patch)
tree673e46c5a67fc872d5725e295c4371dca3ce62ba /pkg/commands
parentf502f75e1f56bf8f34d3fdf42e934919cd045d85 (diff)
move soft reset keybinding into reset options
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index dbd9087c2..1b798990c 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -905,3 +905,8 @@ func (c *GitCommand) RemoveUntrackedFiles() error {
func (c *GitCommand) ResetHardHead() error {
return c.OSCommand.RunCommand("git reset --hard HEAD")
}
+
+// ResetSoftHead runs `git reset --soft HEAD`
+func (c *GitCommand) ResetSoftHead() error {
+ return c.OSCommand.RunCommand("git reset --soft HEAD")
+}