| | |
| | |
|
| | | public class JGitUtils {
|
| | |
|
| | | /** Prefix for notes refs */
|
| | | public static final String R_NOTES = "refs/notes/";
|
| | |
|
| | | /** Standard notes ref */
|
| | | public static final String R_NOTES_COMMITS = R_NOTES + "commits";
|
| | |
|
| | | private final static Logger LOGGER = LoggerFactory.getLogger(JGitUtils.class);
|
| | |
|
| | | public static Repository createRepository(File repositoriesFolder, String name, boolean bare) {
|
| | |
| | | public static List<String> getNestedRepositories(File repositoriesFolder, File folder, boolean exportAll, boolean readNested) {
|
| | | String basefile = repositoriesFolder.getAbsolutePath();
|
| | | List<String> list = new ArrayList<String>();
|
| | | if (folder == null || !folder.exists()) {
|
| | | return list;
|
| | | }
|
| | | for (File file : folder.listFiles()) {
|
| | | if (file.isDirectory() && !file.getName().equalsIgnoreCase(Constants.DOT_GIT)) {
|
| | | // if this is a git repository add it to the list
|