code: func (p *pathFilter) isInteresting(diff []*git.Commit_TreeDiff) (skip bool) {
  	isInterestingPath := func(path string) bool {
  		switch {
  		case path == "":
  			return false
  		case p.pathExclude != nil && p.pathExclude.MatchString(path):
  			return false
  		default:
  			return p.pathInclude.MatchString(path)
  		}
  	}
  
  	for _, d := range diff {
  		if isInterestingPath(d.GetOldPath()) || isInterestingPath(d.GetNewPath()) {
  			return true
  		}
  	}
  	return false
  }
docs: // isInteresting decides whether commit is interesting according to pathFilter
  // based on which files were touched in commits.