public class Branch extends GitObject
| Constructor and Description |
|---|
Branch(Ref candidate)
Constructor for Branch.
|
Branch(String name,
ObjectId sha1)
Constructor for Branch.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns branch name and SHA1 hash.
|
getName, getSHA1, getSHA1Stringpublic Branch(String name, ObjectId sha1)
name - branch namesha1 - object ID to which branch name pointspublic Branch(Ref candidate)
candidate - reference to which branch points (or should point)Copyright © 2013–2016. All rights reserved.