tag : use IsSet
This commit is contained in:
parent
744774878f
commit
fb25a2bb43
1 changed files with 2 additions and 2 deletions
|
|
@ -57,14 +57,14 @@ func Tag(args []string) {
|
|||
entries := entriesGlobOrStdin()
|
||||
|
||||
// we shrink the entries list immediately if we want a date range:
|
||||
if opts.Date.Val != "" {
|
||||
if opts.Date.IsSet() {
|
||||
entries = dateRange(entries, opts.Date.Val)
|
||||
}
|
||||
tagmap := makeTagmap(entries)
|
||||
|
||||
// processQueries must precede invert because we want invert to respect combined tags:
|
||||
files := processQueries(tagmap, queries)
|
||||
if opts.Invert.Val {
|
||||
if opts.Invert.IsSet() {
|
||||
files = invert(entries, files)
|
||||
}
|
||||
// NOTE: the full makeAdjacencies map may one day be useful on its own
|
||||
|
|
|
|||
Loading…
Reference in a new issue