blob: ca8026dc012bef39b1a668de1730083d40bc4874 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package filtering
type Filtering struct {
path string // the filename that gets passed to git log
}
func New(path string) Filtering {
return Filtering{path: 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
}
|