Class ProjectLevelConfig.Bare

  • Enclosing class:
    ProjectLevelConfig

    public static class ProjectLevelConfig.Bare
    extends VersionedMetaData
    This class is a low-level API that allows callers to read the config directly from a repository and make updates to it.
    • Constructor Detail

      • Bare

        public Bare​(String fileName)
    • Method Detail

      • getConfig

        public org.eclipse.jgit.lib.Config getConfig()
      • onLoad

        protected void onLoad()
                       throws IOException,
                              org.eclipse.jgit.errors.ConfigInvalidException
        Description copied from class: VersionedMetaData
        Set up the metadata, parsing any state from the loaded revision.
        Specified by:
        onLoad in class VersionedMetaData
        Throws:
        IOException
        org.eclipse.jgit.errors.ConfigInvalidException
      • onSave

        protected boolean onSave​(org.eclipse.jgit.lib.CommitBuilder commit)
                          throws IOException
        Description copied from class: VersionedMetaData
        Save any changes to the metadata in a commit.
        Specified by:
        onSave in class VersionedMetaData
        Returns:
        true if the commit should proceed, false to abort.
        Throws:
        IOException