diff options
Diffstat (limited to 'pkg/gui/modes/filtering')
-rw-r--r-- | pkg/gui/modes/filtering/filtering.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/gui/modes/filtering/filtering.go b/pkg/gui/modes/filtering/filtering.go new file mode 100644 index 000000000..da6c97a90 --- /dev/null +++ b/pkg/gui/modes/filtering/filtering.go @@ -0,0 +1,25 @@ +package filtering + +type Filtering struct { + path string // the filename that gets passed to git log +} + +func NewFiltering() Filtering { + return Filtering{path: ""} +} + +func (m *Filtering) Active() bool { + return m.path != "" +} + +func (m *Filtering) Reset() { + m.path = "" +} + +func (m *Filtering) SetPath(path string) { + m.path = path +} + +func (m *Filtering) GetPath() string { + return m.path +} |