mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
show graph when selecting branch in branch panel
This commit is contained in:
@ -327,10 +327,15 @@ func sublimeOpenFile(filename string) (string, error) {
|
||||
return runCommand("subl " + filename)
|
||||
}
|
||||
|
||||
func getBranchDiff(branch string, baseBranch string) (string, error) {
|
||||
func getBranchGraph(branch string, baseBranch string) (string, error) {
|
||||
|
||||
return runCommand("git log -p -30 --color --no-merges " + branch)
|
||||
// return runCommand("git diff --color " + baseBranch + "..." + branch)
|
||||
return runCommand("git log --graph --color --abbrev-commit --decorate --date=relative --pretty=medium " + branch)
|
||||
|
||||
// return runCommand("git log --color --graph --oneline " + branch)
|
||||
|
||||
// Leaving this guy commented out in case there's backlash from the design
|
||||
// change and I want to make this configurable
|
||||
// return runCommand("git log -p -30 --color --no-merges " + branch)
|
||||
}
|
||||
|
||||
func verifyInGitRepo() {
|
||||
|
Reference in New Issue
Block a user