Beispiel #1
0
        public bool EvaluateCheckable(GitItem item, GitRevision from, GitRevision to)
        {
            if (_checkableFilter == null)
                return true;

            foreach (SelectableFilter i in _checkableFilter.GetInvocationList())
            {
                if (!i(item, from, to))
                    return false;
            }
            return true;
        }
Beispiel #2
0
 public bool EvaluateChecked(GitItem item)
 {
     return EvaluateFilter(item, _checkedFilter);
 }
Beispiel #3
0
        public static bool EvaluateFilter(GitItem item, Predicate<GitItem> filter)
        {
            if (item == null)
                return false;
            if (filter == null)
                return true;

            foreach (Predicate<GitItem> i in filter.GetInvocationList())
            {
                if (!i(item))
                    return false;
            }
            return true;
        }