1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

rename sha to hash 5

This commit is contained in:
pikomonde
2024-03-21 01:54:24 +07:00
committed by Stefan Haller
parent dc6863b83d
commit 9cf1ca10a2
14 changed files with 62 additions and 62 deletions

View File

@@ -1,7 +1,7 @@
package marked_base_commit
type MarkedBaseCommit struct {
sha string // the sha of the commit used as a rebase base commit; empty string when unset
hash string // the hash of the commit used as a rebase base commit; empty string when unset
}
func New() MarkedBaseCommit {
@@ -9,17 +9,17 @@ func New() MarkedBaseCommit {
}
func (m *MarkedBaseCommit) Active() bool {
return m.sha != ""
return m.hash != ""
}
func (m *MarkedBaseCommit) Reset() {
m.sha = ""
m.hash = ""
}
func (m *MarkedBaseCommit) SetHash(sha string) {
m.sha = sha
func (m *MarkedBaseCommit) SetHash(hash string) {
m.hash = hash
}
func (m *MarkedBaseCommit) GetHash() string {
return m.sha
return m.hash
}