Modifier and Type | Method and Description |
---|---|
Branch |
create(String name,
String sha)
Creates a new branch.
|
Branch |
get(String name)
Gets a branch by name.
|
Iterable<Branch> |
iterate()
Iterate over all branches in the repo.
|
Repo |
repo()
Repo which the branches are in.
|
public Iterable<Branch> iterate()
Branches
iterate
in interface Branches
public Branch create(String name, String sha) throws IOException
name
- Name of branchsha
- Commit SHAIOException
- if there is an I/O problempublic Branch get(String name) throws IOException
name
- Name of branch.IOException
- If there is an I/O problemCopyright © 2012–2018 jcabi.com. All rights reserved.