1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-14 11:23:09 +02:00
lazygit/pkg/gui/modes/diffing/diffing.go
Jesse Duffield 93bf691fd6 refactoring
2021-06-06 09:12:49 +10:00

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 != ""
}