| | |
| | | List<TreeFilter> suffixFilters = new ArrayList<TreeFilter>();
|
| | | for (String extension : extensions) {
|
| | | if (extension.charAt(0) == '.') {
|
| | | suffixFilters.add(PathSuffixFilter.create("\\" + extension));
|
| | | suffixFilters.add(PathSuffixFilter.create(extension));
|
| | | } else {
|
| | | // escape the . since this is a regexp filter
|
| | | suffixFilters.add(PathSuffixFilter.create("\\." + extension));
|
| | | suffixFilters.add(PathSuffixFilter.create("." + extension));
|
| | | }
|
| | | }
|
| | | TreeFilter filter;
|
| | |
| | | */
|
| | | public static boolean setBranchRef(Repository repository, String branch, String commitId) {
|
| | | String branchName = branch;
|
| | | if (!branchName.startsWith(Constants.R_HEADS)) {
|
| | | if (!branchName.startsWith(Constants.R_REFS)) {
|
| | | branchName = Constants.R_HEADS + branch;
|
| | | }
|
| | |
|