mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
refactoring
This commit is contained in:
15
pkg/gui/modes/diffing/diffing.go
Normal file
15
pkg/gui/modes/diffing/diffing.go
Normal file
@ -0,0 +1,15 @@
|
||||
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 != ""
|
||||
}
|
Reference in New Issue
Block a user