Package org.eclipse.jgit.gitrepo
Class BareSuperprojectWriter
java.lang.Object
org.eclipse.jgit.gitrepo.BareSuperprojectWriter
Writes .gitmodules and gitlinks of parsed manifest projects into a bare
repository.
To write on a regular repository, see
RegularSuperprojectWriter
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PersonIdent
private final RepoCommand.RemoteReader
private final BareSuperprojectWriter.BareWriterConfig
private List<BareSuperprojectWriter.ExtraContent>
private static final int
private static final int
private static final int
private final Repository
private final String
private final URI
-
Constructor Summary
ConstructorsConstructorDescriptionBareSuperprojectWriter
(Repository repo, URI targetUri, String targetBranch, PersonIdent author, RepoCommand.RemoteReader callback, BareSuperprojectWriter.BareWriterConfig config, List<BareSuperprojectWriter.ExtraContent> extraContents) -
Method Summary
Modifier and TypeMethodDescriptionprivate RevCommit
commitTreeOnCurrentTip
(ObjectInserter inserter, RevWalk rw, ObjectId treeId) private void
prepareIndex
(List<RepoProject> projects, DirCache index, ObjectInserter inserter) (package private) RevCommit
write
(List<RepoProject> repoProjects)
-
Field Details
-
LOCK_FAILURE_MAX_RETRIES
private static final int LOCK_FAILURE_MAX_RETRIES- See Also:
-
LOCK_FAILURE_MIN_RETRY_DELAY_MILLIS
private static final int LOCK_FAILURE_MIN_RETRY_DELAY_MILLIS- See Also:
-
LOCK_FAILURE_MAX_RETRY_DELAY_MILLIS
private static final int LOCK_FAILURE_MAX_RETRY_DELAY_MILLIS- See Also:
-
repo
-
targetUri
-
targetBranch
-
callback
-
config
-
author
-
extraContents
-
-
Constructor Details
-
BareSuperprojectWriter
BareSuperprojectWriter(Repository repo, URI targetUri, String targetBranch, PersonIdent author, RepoCommand.RemoteReader callback, BareSuperprojectWriter.BareWriterConfig config, List<BareSuperprojectWriter.ExtraContent> extraContents)
-
-
Method Details
-
write
- Throws:
GitAPIException
-
prepareIndex
private void prepareIndex(List<RepoProject> projects, DirCache index, ObjectInserter inserter) throws IOException, GitAPIException - Throws:
IOException
GitAPIException
-
commitTreeOnCurrentTip
private RevCommit commitTreeOnCurrentTip(ObjectInserter inserter, RevWalk rw, ObjectId treeId) throws IOException, ConcurrentRefUpdateException
-