/** * Add a path to a file/directory whose content should be added. * <p> * A directory name (e.g. <code>dir</code> to add <code>dir/file1</code> and * <code>dir/file2</code>) can also be given to add all files in the * directory, recursively. Fileglobs (e.g. *.c) are not yet supported. * * @param filepattern * repository-relative path of file/directory to add (with * <code>/</code> as separator) * @return {@code this} */ public AddCommand addFilepattern(String filepattern) { checkCallable(); filepatterns.add(filepattern); return this; }
/** * Add a path to a file/directory whose content should be added. * <p> * A directory name (e.g. <code>dir</code> to add <code>dir/file1</code> and * <code>dir/file2</code>) can also be given to add all files in the * directory, recursively. Fileglobs (e.g. *.c) are not yet supported. * * @param filepattern * repository-relative path of file/directory to add (with * <code>/</code> as separator) * @return {@code this} */ public AddCommand addFilepattern(String filepattern) { checkCallable(); filepatterns.add(filepattern); return this; }
/** * Add a path to a file/directory whose content should be added. * <p> * A directory name (e.g. <code>dir</code> to add <code>dir/file1</code> and * <code>dir/file2</code>) can also be given to add all files in the * directory, recursively. Fileglobs (e.g. *.c) are not yet supported. * * @param filepattern * repository-relative path of file/directory to add (with * <code>/</code> as separator) * @return {@code this} */ public AddCommand addFilepattern(String filepattern) { checkCallable(); filepatterns.add(filepattern); return this; }
checkCallable(); DirCache dc = null; boolean addAll = filepatterns.contains("."); //$NON-NLS-1$
checkCallable(); DirCache dc = null; boolean addAll = filepatterns.contains("."); //$NON-NLS-1$
checkCallable(); DirCache dc = null; boolean addAll = filepatterns.contains("."); //$NON-NLS-1$