diff options
author | Glenn Vriesman <glenn.vriesman@gmail.com> | 2020-02-03 20:54:43 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-09 23:47:22 +1100 |
commit | 0cd91a10c6038b66ecee3c1971b26ff8436f2a49 (patch) | |
tree | cdc1ccaec3262768e6f242471952715ccff3d7ba /pkg/commands/commit.go | |
parent | f062e1dcda7068be1e8b3cdec28f122dd48e6634 (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.go')
-rw-r--r-- | pkg/commands/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/commit.go b/pkg/commands/commit.go index 1cfed8b29..83c739899 100644 --- a/pkg/commands/commit.go +++ b/pkg/commands/commit.go @@ -64,5 +64,5 @@ func (c *Commit) GetDisplayStrings(isFocused bool) []string { tagString = utils.ColoredString(strings.Join(c.Tags, " "), color.FgMagenta) + " " } - return []string{shaColor.Sprint(c.Sha), actionString + tagString + defaultColor.Sprint(c.Name)} + return []string{shaColor.Sprint(c.Sha[:7]), actionString + tagString + defaultColor.Sprint(c.Name)} } |