/** {@inheritDoc} */ @Override public TreeFilter clone() { return new FollowFilter(path.clone(), cfg); }
/** * Create a new tree filter for a user supplied path. * <p> * Path strings are relative to the root of the repository. If the user's * input should be assumed relative to a subdirectory of the repository the * caller must prepend the subdirectory's path prior to creating the filter. * <p> * Path strings use '/' to delimit directories on all platforms. * * @param path * the path to filter on. Must not be the empty string. All * trailing '/' characters will be trimmed before string's length * is checked or is used as part of the constructed filter. * @param cfg * diff config specifying rename detection options. * @return a new filter for the requested path. * @throws java.lang.IllegalArgumentException * the path supplied was the empty string. * @since 3.0 */ public static FollowFilter create(String path, DiffConfig cfg) { return new FollowFilter(PathFilter.create(path), cfg); }
/** {@inheritDoc} */ @Override public TreeFilter clone() { return new FollowFilter(path.clone(), cfg); }
@Override public TreeFilter clone() { return new FollowFilter(path.clone(), cfg); }
/** {@inheritDoc} */ @Override public TreeFilter clone() { return new FollowFilter(path.clone(), cfg); }
/** * Create a new tree filter for a user supplied path. * <p> * Path strings are relative to the root of the repository. If the user's * input should be assumed relative to a subdirectory of the repository the * caller must prepend the subdirectory's path prior to creating the filter. * <p> * Path strings use '/' to delimit directories on all platforms. * * @param path * the path to filter on. Must not be the empty string. All * trailing '/' characters will be trimmed before string's length * is checked or is used as part of the constructed filter. * @param cfg * diff config specifying rename detection options. * @return a new filter for the requested path. * @throws java.lang.IllegalArgumentException * the path supplied was the empty string. * @since 3.0 */ public static FollowFilter create(String path, DiffConfig cfg) { return new FollowFilter(PathFilter.create(path), cfg); }
/** * Create a new tree filter for a user supplied path. * <p> * Path strings are relative to the root of the repository. If the user's * input should be assumed relative to a subdirectory of the repository the * caller must prepend the subdirectory's path prior to creating the filter. * <p> * Path strings use '/' to delimit directories on all platforms. * * @param path * the path to filter on. Must not be the empty string. All * trailing '/' characters will be trimmed before string's length * is checked or is used as part of the constructed filter. * @param cfg * diff config specifying rename detection options. * @return a new filter for the requested path. * @throws IllegalArgumentException * the path supplied was the empty string. * @since 3.0 */ public static FollowFilter create(String path, DiffConfig cfg) { return new FollowFilter(PathFilter.create(path), cfg); }
/** * Create a new tree filter for a user supplied path. * <p> * Path strings are relative to the root of the repository. If the user's * input should be assumed relative to a subdirectory of the repository the * caller must prepend the subdirectory's path prior to creating the filter. * <p> * Path strings use '/' to delimit directories on all platforms. * * @param path * the path to filter on. Must not be the empty string. All * trailing '/' characters will be trimmed before string's length * is checked or is used as part of the constructed filter. * @param cfg * diff config specifying rename detection options. * @return a new filter for the requested path. * @throws java.lang.IllegalArgumentException * the path supplied was the empty string. * @since 3.0 */ public static FollowFilter create(String path, DiffConfig cfg) { return new FollowFilter(PathFilter.create(path), cfg); }