Package com.google.gerrit.pgm.init.api
Class VersionedMetaDataOnInit
- java.lang.Object
-
- com.google.gerrit.server.git.meta.VersionedMetaData
-
- com.google.gerrit.pgm.init.api.VersionedMetaDataOnInit
-
- Direct Known Subclasses:
AllProjectsConfig
public abstract class VersionedMetaDataOnInit extends VersionedMetaData
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.server.git.meta.VersionedMetaData
VersionedMetaData.BatchMetaDataUpdate, VersionedMetaData.PathInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected String
project
-
Fields inherited from class com.google.gerrit.server.git.meta.VersionedMetaData
inserter, newTree, projectName, reader, revision, rw
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
VersionedMetaDataOnInit(InitFlags flags, SitePaths site, String project, String ref)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getRefName()
VersionedMetaDataOnInit
load()
void
save(String message)
protected void
save(org.eclipse.jgit.lib.PersonIdent ident, String msg)
-
Methods inherited from class com.google.gerrit.server.git.meta.VersionedMetaData
commit, commitToNewRef, getObjectId, getPathInfos, getRevision, load, load, load, load, load, onLoad, onSave, openUpdate, readConfig, readConfig, readFile, readTree, readUTF8, saveConfig, saveFile, saveUTF8, set, set, set
-
-
-
-
Field Detail
-
project
protected final String project
-
-
Method Detail
-
getRefName
protected String getRefName()
- Specified by:
getRefName
in classVersionedMetaData
- Returns:
- name of the reference storing this configuration.
-
load
public VersionedMetaDataOnInit load() throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
save
public void save(String message) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
save
protected void save(org.eclipse.jgit.lib.PersonIdent ident, String msg) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-