summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorpikomonde <32364823+pikomonde@users.noreply.github.com>2024-03-21 02:23:10 +0700
committerStefan Haller <stefan@haller-berlin.de>2024-04-12 08:33:47 +0200
commit19bef17042c4a9426afcefc89fcc9ce672fb2216 (patch)
tree82e2a33d3e9ca6bd89d69ef22fcc557c2afafd5f /pkg/gui
parent170c4ecb8cca77be883f6eebcb46a7631f82ff65 (diff)
rename sha to hash 10, last remaining sha (hopefully)
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/controllers/bisect_controller.go10
-rw-r--r--pkg/gui/presentation/reflog_commits.go6
2 files changed, 8 insertions, 8 deletions
diff --git a/pkg/gui/controllers/bisect_controller.go b/pkg/gui/controllers/bisect_controller.go
index f65f05e02..89cc6241f 100644
--- a/pkg/gui/controllers/bisect_controller.go
+++ b/pkg/gui/controllers/bisect_controller.go
@@ -79,8 +79,8 @@ func (self *BisectController) openMidBisectMenu(info *git_commands.BisectInfo, c
// use the selected commit in that case.
bisecting := info.GetCurrentHash() != ""
- shaToMark := lo.Ternary(bisecting, info.GetCurrentHash(), commit.Hash)
- shortHashToMark := utils.ShortHash(shaToMark)
+ hashToMark := lo.Ternary(bisecting, info.GetCurrentHash(), commit.Hash)
+ shortHashToMark := utils.ShortHash(hashToMark)
// For marking a commit as bad, when we're not already bisecting, we require
// a single item selected, but once we are bisecting, it doesn't matter because
@@ -95,7 +95,7 @@ func (self *BisectController) openMidBisectMenu(info *git_commands.BisectInfo, c
Label: fmt.Sprintf(self.c.Tr.Bisect.Mark, shortHashToMark, info.NewTerm()),
OnPress: func() error {
self.c.LogAction(self.c.Tr.Actions.BisectMark)
- if err := self.c.Git().Bisect.Mark(shaToMark, info.NewTerm()); err != nil {
+ if err := self.c.Git().Bisect.Mark(hashToMark, info.NewTerm()); err != nil {
return self.c.Error(err)
}
@@ -108,7 +108,7 @@ func (self *BisectController) openMidBisectMenu(info *git_commands.BisectInfo, c
Label: fmt.Sprintf(self.c.Tr.Bisect.Mark, shortHashToMark, info.OldTerm()),
OnPress: func() error {
self.c.LogAction(self.c.Tr.Actions.BisectMark)
- if err := self.c.Git().Bisect.Mark(shaToMark, info.OldTerm()); err != nil {
+ if err := self.c.Git().Bisect.Mark(hashToMark, info.OldTerm()); err != nil {
return self.c.Error(err)
}
@@ -121,7 +121,7 @@ func (self *BisectController) openMidBisectMenu(info *git_commands.BisectInfo, c
Label: fmt.Sprintf(self.c.Tr.Bisect.SkipCurrent, shortHashToMark),
OnPress: func() error {
self.c.LogAction(self.c.Tr.Actions.BisectSkip)
- if err := self.c.Git().Bisect.Skip(shaToMark); err != nil {
+ if err := self.c.Git().Bisect.Skip(hashToMark); err != nil {
return self.c.Error(err)
}
diff --git a/pkg/gui/presentation/reflog_commits.go b/pkg/gui/presentation/reflog_commits.go
index b40f33b23..b97064d51 100644
--- a/pkg/gui/presentation/reflog_commits.go
+++ b/pkg/gui/presentation/reflog_commits.go
@@ -40,12 +40,12 @@ func reflogHashColor(cherryPicked, diffed bool) style.TextStyle {
return theme.DiffTerminalColor
}
- shaColor := style.FgBlue
+ hashColor := style.FgBlue
if cherryPicked {
- shaColor = theme.CherryPickedCommitTextStyle
+ hashColor = theme.CherryPickedCommitTextStyle
}
- return shaColor
+ return hashColor
}
type reflogCommitDisplayAttributes struct {