From f11edda6a286565755d9a03f478505773aa74232 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 7 Aug 2018 10:09:29 +1000 Subject: [PATCH] limit commits in graph output for performance --- gitcommands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitcommands.go b/gitcommands.go index 1a151310f..71e737a6e 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -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