These footer lines tend to be used to represent additional information about a commit, like the path it followed through reviewers before finally being accepted into the project's main repository as an immutable commit.
RevCommit#getFooterLines()
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final Charset | |
| private final int | |
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static List | Returns: ordered list of footer lines; empty list if no footers found.the message to extract footers from. str)Extract the footer lines from the given message. |
| public static List | Returns: ordered list of footer lines; empty list if no footers found.the raw message to extract footers from. raw)Extract the footer lines from the given message. |
| public String | Returns: email address appearing in the value of this footer, or null.Extract the email address (if present) from the footer. |
| public int | |
| public String | Returns: key name of this footer; that is the text before the ":" on the line footer's line. The text is decoded according to the commit's specified (or assumed) character encoding.Get key name of this footer. |
| public int | Returns: start offset of the footer relative to the original raw message byte buffer
|
| public String | Returns: value of this footer; that is the text after the ":" and any leading whitespace has been skipped. May be the empty string if the footer has no value (line ended with ":"). The text is decoded according to the commit's specified (or assumed) character encoding.Get value of this footer. |
| public static List | Returns: values of footers with key ofkeyName, ordered by their
order of appearance. Duplicates may be returned if the same
footer appeared more than once. Empty list if no footers appear
with the specified key, or there are no footers at all.list of footers to find the values in. footers, String footer key to find values of, case-insensitive. keyName)Get the values of all footer lines with the given key. |
| public static List | Returns: values of footers with key ofkeyName, ordered by their
order of appearance. Duplicates may be returned if the same
footer appeared more than once. Empty list if no footers appear
with the specified key, or there are no footers at all.list of footers to find the values in. footers, FooterKey footer key to find values of, case-insensitive. key)Get the values of all footer lines with the given key. |
| public boolean | |
| public String |
| buffer | back to summary |
|---|---|
| private final byte[] buffer | |
| enc | back to summary |
|---|---|
| private final Charset enc | |
| keyEnd | back to summary |
|---|---|
| private final int keyEnd | |
| keyStart | back to summary |
|---|---|
| private final int keyStart | |
| valEnd | back to summary |
|---|---|
| private final int valEnd | |
| valStart | back to summary |
|---|---|
| private final int valStart | |
| FooterLine | back to summary |
|---|---|
| pack-priv FooterLine(final byte[] b, final Charset e, final int ks, final int ke, final int vs, final int ve) | |
| fromMessage | back to summary |
|---|---|
| public static List Extract the footer lines from the given message.
| |
| fromMessage | back to summary |
|---|---|
| public static List Extract the footer lines from the given message.
| |
| getEmailAddress | back to summary |
|---|---|
| public String getEmailAddress() Extract the email address (if present) from the footer.
If there is an email address looking string inside of angle brackets
(e.g. "<a@b>"), the return value is the part extracted from inside the
brackets. If no brackets are found, then
| |
| getEndOffset | back to summary |
|---|---|
public int getEndOffset()
| |
| getKey | back to summary |
|---|---|
| public String getKey() Get key name of this footer.
| |
| getStartOffset | back to summary |
|---|---|
public int getStartOffset()
| |
| getValue | back to summary |
|---|---|
| public String getValue() Get value of this footer.
| |
| getValues | back to summary |
|---|---|
| public static List Get the values of all footer lines with the given key.
| |
| getValues | back to summary |
|---|---|
| public static List Get the values of all footer lines with the given key.
| |
| matches | back to summary |
|---|---|
| public boolean matches(FooterKey key) Whether keys match
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |