mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-22 05:29:44 +02:00
support configurable merge args
This commit is contained in:
parent
e9f28855a2
commit
304607ae5d
@ -35,6 +35,8 @@ Default path for the config file:
|
|||||||
merging:
|
merging:
|
||||||
# only applicable to unix users
|
# only applicable to unix users
|
||||||
manualCommit: false
|
manualCommit: false
|
||||||
|
# extra args passed to `git merge`, e.g. --no-ff
|
||||||
|
args: ""
|
||||||
skipHookPrefix: WIP
|
skipHookPrefix: WIP
|
||||||
autoFetch: true
|
autoFetch: true
|
||||||
update:
|
update:
|
||||||
|
@ -410,7 +410,8 @@ func (c *GitCommand) ListStash() (string, error) {
|
|||||||
|
|
||||||
// Merge merge
|
// Merge merge
|
||||||
func (c *GitCommand) Merge(branchName string) error {
|
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
|
// AbortMerge abort merge
|
||||||
|
@ -264,6 +264,7 @@ git:
|
|||||||
useConfig: false
|
useConfig: false
|
||||||
merging:
|
merging:
|
||||||
manualCommit: false
|
manualCommit: false
|
||||||
|
args: ""
|
||||||
skipHookPrefix: 'WIP'
|
skipHookPrefix: 'WIP'
|
||||||
autoFetch: true
|
autoFetch: true
|
||||||
update:
|
update:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user