org.gitective.core
Class PathFilterUtils

java.lang.Object
  extended by org.gitective.core.PathFilterUtils

public abstract class PathFilterUtils
extends Object

Utilities for filtering paths in a repository


Constructor Summary
PathFilterUtils()
           
 
Method Summary
static org.eclipse.jgit.treewalk.filter.TreeFilter and(String... paths)
          Create a diff filter that affects all the given paths
static org.eclipse.jgit.treewalk.filter.TreeFilter andSuffix(String... suffixes)
          Create a diff filter affecting all of the given path suffixes
static org.eclipse.jgit.treewalk.filter.TreeFilter or(String... paths)
          Create a diff filter that affects any of the given paths
static org.eclipse.jgit.treewalk.filter.TreeFilter orSuffix(String... suffixes)
          Create a diff filter affecting any of the given path suffixes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFilterUtils

public PathFilterUtils()
Method Detail

and

public static org.eclipse.jgit.treewalk.filter.TreeFilter and(String... paths)
Create a diff filter that affects all the given paths

Parameters:
paths -
Returns:
tree filter for diffs affecting given paths

or

public static org.eclipse.jgit.treewalk.filter.TreeFilter or(String... paths)
Create a diff filter that affects any of the given paths

Parameters:
paths -
Returns:
tree filter for diffs affecting given paths

andSuffix

public static org.eclipse.jgit.treewalk.filter.TreeFilter andSuffix(String... suffixes)
Create a diff filter affecting all of the given path suffixes

Parameters:
suffixes -
Returns:
tree filter for diffs affecting given suffixes

orSuffix

public static org.eclipse.jgit.treewalk.filter.TreeFilter orSuffix(String... suffixes)
Create a diff filter affecting any of the given path suffixes

Parameters:
suffixes -
Returns:
tree filter for diffs affecting given suffixes


Copyright © 2011-2012. All Rights Reserved.