func negateIgnoreRule(r ignoreRuleEvalFn) ignoreRuleEvalFn {
	return func(path string, isDir bool) ruleResult {
		if res := r(path, isDir); res == ruleResultSkip {
			return ruleResultForceKeep
		}

		return ruleResultKeep
	}
}
// negateIgnoreRule constructs a ignoreRuleEvalFn that returns
// ruleResultForceKeep if r evaluates to ruleResultSkip. This function enables
// the construction of negateed ignore rules that force-include a file even
// though it was previously excluded by another rule.
negateIgnoreRule constructs a ignoreRuleEvalFn that returns
ruleResultForceKeep if r evaluates to ruleResultSkip. This function enables
the construction of negateed ignore rules that force-include a file even
though it was previously excluded by another rule.
// negateIgnoreRule constructs a ignoreRuleEvalFn that returns // ruleResultForceKeep if r evaluates to ruleResultSkip . This function enables // the construction of negateed ignore rules that force - include a file even // though it was previously excluded by another rule .
func negateIgnoreRule(r ignoreRuleEvalFn) ignoreRuleEvalFn {
	return func(path string, isDir bool) ruleResult {
		if res := r(path, isDir); res == ruleResultSkip {
			return ruleResultForceKeep
		}
		return ruleResultKeep
	}
}
func negateIgnoreRule ( r ignoreRuleEvalFn ) ignoreRuleEvalFn { return func ( path string , isDir bool ) ruleResult { if res := r ( path , isDir ) ; res == ruleResultSkip { return ruleResultForceKeep } return ruleResultKeep } }
negateIgnoreRule constructs a ignoreRuleEvalFn that returns
ruleResultForceKeep if r evaluates to ruleResultSkip.
negateIgnoreRule constructs a ignoreRuleEvalFn that returns ruleResultForceKeep if r evaluates to ruleResultSkip .