1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

fix bug where mixed reset is actually a soft reset

This commit is contained in:
Jesse Duffield
2021-04-10 16:05:21 +10:00
parent bb918b579a
commit bfad972f0c
3 changed files with 16 additions and 6 deletions

View File

@ -152,6 +152,10 @@ func (c *GitCommand) ResetSoft(ref string) error {
return c.RunCommand("git reset --soft " + ref)
}
func (c *GitCommand) ResetMixed(ref string) error {
return c.RunCommand("git reset --mixed " + ref)
}
func (c *GitCommand) RenameBranch(oldName string, newName string) error {
return c.RunCommand("git branch --move %s %s", oldName, newName)
}