File: marked_base_commit.go

package info (click to toggle)
lazygit 0.50.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,808 kB
  • sloc: sh: 128; makefile: 76
file content (25 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package marked_base_commit

type MarkedBaseCommit struct {
	hash string // the hash of the commit used as a rebase base commit; empty string when unset
}

func New() MarkedBaseCommit {
	return MarkedBaseCommit{}
}

func (m *MarkedBaseCommit) Active() bool {
	return m.hash != ""
}

func (m *MarkedBaseCommit) Reset() {
	m.hash = ""
}

func (m *MarkedBaseCommit) SetHash(hash string) {
	m.hash = hash
}

func (m *MarkedBaseCommit) GetHash() string {
	return m.hash
}