public class TestRepository.BranchBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
ref |
| Constructor and Description |
|---|
BranchBuilder(java.lang.String ref) |
| Modifier and Type | Method and Description |
|---|---|
TestRepository.CommitBuilder |
commit() |
void |
delete()
Delete this branch.
|
RevCommit |
update(RevCommit to)
Forcefully update this branch to a particular commit.
|
RevCommit |
update(TestRepository.CommitBuilder to)
Forcefully update this branch to a particular commit.
|
public TestRepository.CommitBuilder commit() throws java.lang.Exception
java.lang.Exception - the commit builder can't read the current branch statepublic RevCommit update(TestRepository.CommitBuilder to) throws java.lang.Exception
to - the commit to update to.to.java.lang.Exceptionpublic RevCommit update(RevCommit to) throws java.lang.Exception
to - the commit to update to.to.java.lang.Exceptionpublic void delete()
throws java.lang.Exception
java.lang.Exception