@Immutable public interface References
Modifier and Type | Method and Description |
---|---|
Reference |
create(String ref,
String sha)
Creates a reference.
|
Reference |
get(String identifier)
Get Reference by identifier.
|
Iterable<Reference> |
heads()
Iterate references under "heads" sub-namespace.
|
Iterable<Reference> |
iterate()
Iterates all references.
|
Iterable<Reference> |
iterate(String subnamespace)
Iterates references in sub-namespace.
|
void |
remove(String identifier)
Removes a reference by its identifier.
|
Repo |
repo()
Owner of them.
|
Iterable<Reference> |
tags()
Iterate references under "tags" sub-namespace.
|
Repo repo()
Reference create(String ref, String sha) throws IOException
ref
- The name of the fully qualified reference (ie: refs/heads/master).sha
- The SHA1 value to set this reference to.IOException
- - If there are any errors.Reference get(String identifier)
identifier
- Reference's name.Iterable<Reference> iterate(String subnamespace)
subnamespace
- Sub-namespaceIterable<Reference> tags()
Iterable<Reference> heads()
void remove(String identifier) throws IOException
identifier
- Reference's identifier.IOException
- If there is any I/O problem.Copyright © 2012–2018 jcabi.com. All rights reserved.