public static class ExternalIdNotes.Factory extends java.lang.Object implements ExternalIdNotes.ExternalIdNotesLoader
Modifier and Type | Method and Description |
---|---|
ExternalIdNotes |
load(org.eclipse.jgit.lib.Repository allUsersRepo)
Loads the external ID notes from the current tip of the
refs/meta/external-ids
branch. |
ExternalIdNotes |
load(org.eclipse.jgit.lib.Repository allUsersRepo,
org.eclipse.jgit.lib.ObjectId rev)
Loads the external ID notes from the specified revision of the
refs/meta/external-ids
branch. |
public ExternalIdNotes load(org.eclipse.jgit.lib.Repository allUsersRepo) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
ExternalIdNotes.ExternalIdNotesLoader
refs/meta/external-ids
branch.load
in interface ExternalIdNotes.ExternalIdNotesLoader
allUsersRepo
- the All-Users repositoryjava.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public ExternalIdNotes load(org.eclipse.jgit.lib.Repository allUsersRepo, org.eclipse.jgit.lib.ObjectId rev) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
ExternalIdNotes.ExternalIdNotesLoader
refs/meta/external-ids
branch.load
in interface ExternalIdNotes.ExternalIdNotesLoader
allUsersRepo
- the All-Users repositoryrev
- the revision from which the external ID notes should be loaded, if null
the external ID notes are loaded from the current tip, if ObjectId.zeroId()
it's
assumed that the refs/meta/external-ids
branch doesn't exist and the loaded
external IDs will be emptyjava.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException