summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context/sub_commits_context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-05-26 16:38:58 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-05-26 17:31:39 +1000
commit0e0458f3557e4d9bd481e6f302d99e87bc7fcf64 (patch)
tree7bb2d64f82fde96d905b3ff890b2f10841ec7c91 /pkg/gui/context/sub_commits_context.go
parent05bfa96936879c629f21de3e5fc7813a39562298 (diff)
More compact and flexible date format
You can now configure both a time format and a short time format, where the short format kicks in when the time is within the last day
Diffstat (limited to 'pkg/gui/context/sub_commits_context.go')
-rw-r--r--pkg/gui/context/sub_commits_context.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/gui/context/sub_commits_context.go b/pkg/gui/context/sub_commits_context.go
index a4d4205d1..a88d96e08 100644
--- a/pkg/gui/context/sub_commits_context.go
+++ b/pkg/gui/context/sub_commits_context.go
@@ -2,6 +2,7 @@ package context
import (
"fmt"
+ "time"
"github.com/jesseduffield/lazygit/pkg/commands/git_commands"
"github.com/jesseduffield/lazygit/pkg/commands/models"
@@ -47,6 +48,8 @@ func NewSubCommitsContext(
c.Modes().CherryPicking.SelectedShaSet(),
c.Modes().Diffing.Ref,
c.UserConfig.Gui.TimeFormat,
+ c.UserConfig.Gui.ShortTimeFormat,
+ time.Now(),
c.UserConfig.Git.ParseEmoji,
selectedCommitSha,
startIdx,