mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-01 13:17:53 +02:00
add oneline-graph
This commit is contained in:
parent
e82d2f37a1
commit
e89bf5d06b
@ -43,6 +43,7 @@ Default path for the config file:
|
|||||||
args: ""
|
args: ""
|
||||||
skipHookPrefix: WIP
|
skipHookPrefix: WIP
|
||||||
autoFetch: true
|
autoFetch: true
|
||||||
|
branchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --"
|
||||||
update:
|
update:
|
||||||
method: prompt # can be: prompt | background | never
|
method: prompt # can be: prompt | background | never
|
||||||
days: 14 # how often an update is checked for
|
days: 14 # how often an update is checked for
|
||||||
|
@ -635,7 +635,11 @@ func (c *GitCommand) ShowCmdStr(sha string, filterPath string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *GitCommand) GetBranchGraphCmdStr(branchName string) string {
|
func (c *GitCommand) GetBranchGraphCmdStr(branchName string) string {
|
||||||
return fmt.Sprintf("git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium %s --", branchName)
|
branchLogCmdTemplate := c.Config.GetUserConfig().GetString("git.branchLogCmd")
|
||||||
|
templateValues := map[string]string{
|
||||||
|
"branchName": branchName,
|
||||||
|
}
|
||||||
|
return utils.ResolvePlaceholderString(branchLogCmdTemplate, templateValues)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRemoteURL returns current repo remote url
|
// GetRemoteURL returns current repo remote url
|
||||||
|
@ -270,6 +270,7 @@ git:
|
|||||||
args: ""
|
args: ""
|
||||||
skipHookPrefix: 'WIP'
|
skipHookPrefix: 'WIP'
|
||||||
autoFetch: true
|
autoFetch: true
|
||||||
|
branchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --"
|
||||||
update:
|
update:
|
||||||
method: prompt # can be: prompt | background | never
|
method: prompt # can be: prompt | background | never
|
||||||
days: 14 # how often a update is checked for
|
days: 14 # how often a update is checked for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user