diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-08-16 08:55:34 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-08-29 08:16:40 +0200 |
commit | 4de3fadb00e3829bcda3ae2d4379251c6a81c0a8 (patch) | |
tree | c0fb060d23bad2134083d1e6415196db98562766 /pkg/gui/context | |
parent | 12f24aa8b44aa9e5470099ae0bbc8f2231c912b7 (diff) |
Remove sub_commits_context's Title method
It implemented this because it wants to do custom truncation of the ref name;
however, we can achieve the same thing by passing the truncated ref name to our
DynamicTitleBuilder, which was previously unused.
Diffstat (limited to 'pkg/gui/context')
-rw-r--r-- | pkg/gui/context/sub_commits_context.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/gui/context/sub_commits_context.go b/pkg/gui/context/sub_commits_context.go index 43cc513c0..b9b3a91b0 100644 --- a/pkg/gui/context/sub_commits_context.go +++ b/pkg/gui/context/sub_commits_context.go @@ -1,14 +1,12 @@ package context import ( - "fmt" "time" "github.com/jesseduffield/lazygit/pkg/commands/git_commands" "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/gui/presentation" "github.com/jesseduffield/lazygit/pkg/gui/types" - "github.com/jesseduffield/lazygit/pkg/utils" ) type SubCommitsContext struct { @@ -160,10 +158,6 @@ func (self *SubCommitsContext) GetCommits() []*models.Commit { return self.getModel() } -func (self *SubCommitsContext) Title() string { - return fmt.Sprintf(self.c.Tr.SubCommitsDynamicTitle, utils.TruncateWithEllipsis(self.ref.RefName(), 50)) -} - func (self *SubCommitsContext) SetLimitCommits(value bool) { self.limitCommits = value } |