1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02:00

limit commits in graph output for performance

This commit is contained in:
Jesse Duffield 2018-08-07 10:09:29 +10:00
parent 7fb77418cc
commit f11edda6a2

View File

@ -332,7 +332,7 @@ func sublimeOpenFile(filename string) (string, error) {
}
func getBranchGraph(branch string, baseBranch string) (string, error) {
return runCommand("git log --graph --color --abbrev-commit --decorate --date=relative --pretty=medium " + branch)
return runCommand("git log --graph --color --abbrev-commit --decorate --date=relative --pretty=medium -100 " + branch)
// Leaving this guy commented out in case there's backlash from the design
// change and I want to make this configurable