summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-04-20 18:35:22 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-04-20 18:40:49 +1000
commit304607ae5d4b18acaeffaa980b97ba3984ece311 (patch)
tree20df3fbf7b596f35fa026b910e947967ce5c527e /pkg
parente9f28855a246f132aac3575eb484c5219abac3e2 (diff)
support configurable merge args
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git.go3
-rw-r--r--pkg/config/app_config.go1
2 files changed, 3 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 5958886c3..f996c01b5 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -410,7 +410,8 @@ func (c *GitCommand) ListStash() (string, error) {
// Merge merge
func (c *GitCommand) Merge(branchName string) error {
- return c.OSCommand.RunCommand("git merge --no-edit %s", branchName)
+ mergeArgs := c.Config.GetUserConfig().GetString("git.merging.args")
+ return c.OSCommand.RunCommand("git merge --no-edit %s %s", mergeArgs, branchName)
}
// AbortMerge abort merge
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go
index 76f2fb76f..f3824c5f1 100644
--- a/pkg/config/app_config.go
+++ b/pkg/config/app_config.go
@@ -264,6 +264,7 @@ git:
useConfig: false
merging:
manualCommit: false
+ args: ""
skipHookPrefix: 'WIP'
autoFetch: true
update: