Package org.eclipse.jgit.gitrepo
Class RegularSuperprojectWriter
java.lang.Object
org.eclipse.jgit.gitrepo.RegularSuperprojectWriter
Writes .gitmodules and gitlinks of parsed manifest projects into a regular
repository (using git submodule commands)
To write on a bare repository, use
BareSuperprojectWriter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSubmodule
(String name, String url, String path, String revision, List<RepoProject.CopyFile> copyfiles, List<RepoProject.LinkFile> linkfiles, Git git) private static String
findRef
(String ref, Repository repo) (package private) RevCommit
write
(List<RepoProject> repoProjects)
-
Field Details
-
repo
-
monitor
-
-
Constructor Details
-
RegularSuperprojectWriter
RegularSuperprojectWriter(Repository repo, ProgressMonitor monitor)
-
-
Method Details
-
write
- Throws:
GitAPIException
-
addSubmodule
private void addSubmodule(String name, String url, String path, String revision, List<RepoProject.CopyFile> copyfiles, List<RepoProject.LinkFile> linkfiles, Git git) throws GitAPIException, IOException - Throws:
GitAPIException
IOException
-
findRef
- Throws:
IOException
-