diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-09 09:33:18 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-09 09:33:18 +1000 |
commit | 0c84055abd9a3bd20f7237b014bbda89ea6ff454 (patch) | |
tree | b933cef4e080c33c14f1dc71735bdbecd19a4d7a /gitcommands.go | |
parent | 5d9df3ca076ee9e2bc07fc8e4408b2b46d7c516e (diff) |
show error on git add --patching untracked file
Diffstat (limited to 'gitcommands.go')
-rw-r--r-- | gitcommands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitcommands.go b/gitcommands.go index 2c5a4f2dc..22fa4d1f3 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -306,7 +306,7 @@ func getOpenCommand() (string, string, error) { } func gitAddPatch(g *gocui.Gui, filename string) { - runSubProcess(g, "git", "add", "-p", filename) + runSubProcess(g, "git", "add", "--patch", filename) } func editFile(g *gocui.Gui, filename string) (string, error) { |