mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
16 lines
216 B
Go
16 lines
216 B
Go
|
package diffing
|
||
|
|
||
|
// if ref is blank we're not diffing anything
|
||
|
type Diffing struct {
|
||
|
Ref string
|
||
|
Reverse bool
|
||
|
}
|
||
|
|
||
|
func New() Diffing {
|
||
|
return Diffing{}
|
||
|
}
|
||
|
|
||
|
func (m *Diffing) Active() bool {
|
||
|
return m.Ref != ""
|
||
|
}
|