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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user