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 PersonIdentprivate final RepoCommand.RemoteReaderprivate final BareSuperprojectWriter.BareWriterConfigprivate List<BareSuperprojectWriter.ExtraContent>private static final intprivate static final intprivate static final intprivate final Repositoryprivate final Stringprivate 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 RevCommitcommitTreeOnCurrentTip(ObjectInserter inserter, RevWalk rw, ObjectId treeId) private voidprepareIndex(List<RepoProject> projects, DirCache index, ObjectInserter inserter) (package private) RevCommitwrite(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:
IOExceptionGitAPIException
-
commitTreeOnCurrentTip
private RevCommit commitTreeOnCurrentTip(ObjectInserter inserter, RevWalk rw, ObjectId treeId) throws IOException, ConcurrentRefUpdateException
-