1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

refactoring

This commit is contained in:
Jesse Duffield
2021-06-05 15:08:36 +10:00
parent 82022615dd
commit 93bf691fd6
6 changed files with 53 additions and 35 deletions

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