mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 11:02:41 +03:00
add test for StashSave and refactor StashSave method
This commit is contained in:
committed by
Anthony HAMON
parent
99840d8fc4
commit
45fa257128
@@ -112,7 +112,7 @@ func (c *GitCommand) StashDo(index int, method string) error {
|
||||
// StashSave save stash
|
||||
// TODO: before calling this, check if there is anything to save
|
||||
func (c *GitCommand) StashSave(message string) error {
|
||||
return c.OSCommand.RunCommand("git stash save " + c.OSCommand.Quote(message))
|
||||
return c.OSCommand.RunCommand(fmt.Sprintf("git stash save %s", c.OSCommand.Quote(message)))
|
||||
}
|
||||
|
||||
// MergeStatusFiles merge status files
|
||||
|
Reference in New Issue
Block a user