summaryrefslogtreecommitdiffstats
path: root/pkg/commands/commit_list_builder.go
diff options
context:
space:
mode:
authorGlenn Vriesman <glenn.vriesman@gmail.com>2020-02-03 20:54:43 +0100
committerJesse Duffield <jessedduffield@gmail.com>2020-02-09 23:47:22 +1100
commit0cd91a10c6038b66ecee3c1971b26ff8436f2a49 (patch)
treecdc1ccaec3262768e6f242471952715ccff3d7ba /pkg/commands/commit_list_builder.go
parentf062e1dcda7068be1e8b3cdec28f122dd48e6634 (diff)
Increase internal sha size
This does not change the sha size that is displayed to the user Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
Diffstat (limited to 'pkg/commands/commit_list_builder.go')
-rw-r--r--pkg/commands/commit_list_builder.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/commit_list_builder.go b/pkg/commands/commit_list_builder.go
index a467b3517..1c22ff711 100644
--- a/pkg/commands/commit_list_builder.go
+++ b/pkg/commands/commit_list_builder.go
@@ -288,8 +288,8 @@ func (c *CommitListBuilder) getLog(limit bool) string {
limitFlag = "-30"
}
- c.Log.Warn(fmt.Sprintf("git log --oneline %s", limitFlag))
- result, err := c.OSCommand.RunCommandWithOutput(fmt.Sprintf("git log --oneline %s", limitFlag))
+ c.Log.Warn(fmt.Sprintf("git log --oneline %s --abbrev=%d", limitFlag, 20))
+ result, err := c.OSCommand.RunCommandWithOutput(fmt.Sprintf("git log --oneline %s --abbrev=%d", limitFlag, 20))
if err != nil {
// assume if there is an error there are no commits yet for this branch
return ""