br.com.objectos.git
public abstract class RefName extends Object implements br.com.objectos.core.object.ToStringObject
| Modifier and Type | Field and Description |
|---|---|
static RefName |
MASTER
The refs/heads/master reference.
|
| Modifier and Type | Method and Description |
|---|---|
void |
formatToString(StringBuilder sb,
int depth) |
static RefName |
namedBranch(String name)
Creates a new
RefName representing a named branch. |
abstract String |
print()
Returns the name of this reference.
|
String |
toString() |
public static final RefName MASTER
public static RefName namedBranch(String name)
RefName representing a named branch.
For example, if RefName.namedBranch("test") is invoked, then the
returned RefName will represent the Git reference
refs/heads/test.
name - the name of the branchRefName representing a named branch.public final void formatToString(StringBuilder sb, int depth)
formatToString in interface br.com.objectos.core.object.ToStringObjectpublic abstract String print()
Copyright © 2020–2022 Objectos Software LTDA. All rights reserved.