Top Description Inners Fields Constructors Methods
org.eclipse.jgit.gitrepo

pack-priv Class BareSuperprojectWriter

extends Object
Class Inheritance
Static Imports
java.nio.charset.StandardCharsets.UTF_8, org.eclipse.jgit.lib.Constants.R_TAGS

Writes .gitmodules and gitlinks of parsed manifest projects into a bare repository. To write on a regular repository, see RegularSuperprojectWriter.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private 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

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private RevCommit
private void
prepareIndex(List<RepoProject> projects, DirCache index, ObjectInserter inserter)

pack-priv RevCommit
write(List<RepoProject> repoProjects)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authorback to summary
private final PersonIdent author
callbackback to summary
private final RepoCommand.RemoteReader callback
configback to summary
private final BareSuperprojectWriter.BareWriterConfig config
extraContentsback to summary
private List<BareSuperprojectWriter.ExtraContent> extraContents
LOCK_FAILURE_MAX_RETRIESback to summary
private static final int LOCK_FAILURE_MAX_RETRIES
LOCK_FAILURE_MAX_RETRY_DELAY_MILLISback to summary
private static final int LOCK_FAILURE_MAX_RETRY_DELAY_MILLIS
LOCK_FAILURE_MIN_RETRY_DELAY_MILLISback to summary
private static final int LOCK_FAILURE_MIN_RETRY_DELAY_MILLIS
repoback to summary
private final Repository repo
targetBranchback to summary
private final String targetBranch
targetUriback to summary
private final URI targetUri

Constructor Detail

BareSuperprojectWriterback to summary
pack-priv BareSuperprojectWriter(Repository repo, URI targetUri, String targetBranch, PersonIdent author, RepoCommand.RemoteReader callback, BareSuperprojectWriter.BareWriterConfig config, List<BareSuperprojectWriter.ExtraContent> extraContents)

Method Detail

commitTreeOnCurrentTipback to summary
private RevCommit commitTreeOnCurrentTip(ObjectInserter inserter, RevWalk rw, ObjectId treeId) throws IOException, ConcurrentRefUpdateException
prepareIndexback to summary
private void prepareIndex(List<RepoProject> projects, DirCache index, ObjectInserter inserter) throws IOException, GitAPIException
writeback to summary
pack-priv RevCommit write(List<RepoProject> repoProjects) throws GitAPIException
org.eclipse.jgit.gitrepo back to summary

pack-priv Class BareSuperprojectWriter.BareWriterConfig

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.gitrepo.BareSuperprojectWriter.BareWriterConfig

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static BareSuperprojectWriter.BareWriterConfig
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ignoreRemoteFailuresback to summary
pack-priv boolean ignoreRemoteFailures
recordRemoteBranchback to summary
pack-priv boolean recordRemoteBranch
recordShallowSubmodulesback to summary
pack-priv boolean recordShallowSubmodules
recordSubmoduleLabelsback to summary
pack-priv boolean recordSubmoduleLabels

Constructor Detail

BareWriterConfigback to summary
private BareWriterConfig()

Method Detail

getDefaultback to summary
pack-priv static BareSuperprojectWriter.BareWriterConfig getDefault()
org.eclipse.jgit.gitrepo back to summary

pack-priv Class BareSuperprojectWriter.ExtraContent

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv
ExtraContent(String path, String content)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentback to summary
pack-priv final String content
pathback to summary
pack-priv final String path

Constructor Detail

ExtraContentback to summary
pack-priv ExtraContent(String path, String content)