summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context
diff options
context:
space:
mode:
authorpikomonde <32364823+pikomonde@users.noreply.github.com>2024-03-20 03:15:20 +0700
committerStefan Haller <stefan@haller-berlin.de>2024-04-12 08:33:47 +0200
commit84333eebc3be466b23627f6709ad6b000ddd21f1 (patch)
tree0dc30763a0afb5abeabbe051e0c17771f4670b67 /pkg/gui/context
parent7f6eea2a55ee6e17660c893a9322d743c5016caf (diff)
renaming variable to CommitHash
Diffstat (limited to 'pkg/gui/context')
-rw-r--r--pkg/gui/context/local_commits_context.go6
-rw-r--r--pkg/gui/context/sub_commits_context.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/context/local_commits_context.go b/pkg/gui/context/local_commits_context.go
index c6d7de991..043483fc9 100644
--- a/pkg/gui/context/local_commits_context.go
+++ b/pkg/gui/context/local_commits_context.go
@@ -29,12 +29,12 @@ func NewLocalCommitsContext(c *ContextCommon) *LocalCommitsContext {
)
getDisplayStrings := func(startIdx int, endIdx int) [][]string {
- selectedCommitSha := ""
+ selectedCommitHash := ""
if c.CurrentContext().GetKey() == LOCAL_COMMITS_CONTEXT_KEY {
selectedCommit := viewModel.GetSelected()
if selectedCommit != nil {
- selectedCommitSha = selectedCommit.Sha
+ selectedCommitHash = selectedCommit.Sha
}
}
@@ -55,7 +55,7 @@ func NewLocalCommitsContext(c *ContextCommon) *LocalCommitsContext {
c.UserConfig.Gui.ShortTimeFormat,
time.Now(),
c.UserConfig.Git.ParseEmoji,
- selectedCommitSha,
+ selectedCommitHash,
startIdx,
endIdx,
shouldShowGraph(c),
diff --git a/pkg/gui/context/sub_commits_context.go b/pkg/gui/context/sub_commits_context.go
index d98188b91..9bad0b8cf 100644
--- a/pkg/gui/context/sub_commits_context.go
+++ b/pkg/gui/context/sub_commits_context.go
@@ -44,11 +44,11 @@ func NewSubCommitsContext(
return [][]string{}
}
- selectedCommitSha := ""
+ selectedCommitHash := ""
if c.CurrentContext().GetKey() == SUB_COMMITS_CONTEXT_KEY {
selectedCommit := viewModel.GetSelected()
if selectedCommit != nil {
- selectedCommitSha = selectedCommit.Sha
+ selectedCommitHash = selectedCommit.Sha
}
}
branches := []*models.Branch{}
@@ -70,7 +70,7 @@ func NewSubCommitsContext(
c.UserConfig.Gui.ShortTimeFormat,
time.Now(),
c.UserConfig.Git.ParseEmoji,
- selectedCommitSha,
+ selectedCommitHash,
startIdx,
endIdx,
// Don't show the graph in the left/right view; we'd like to, but