Example usage for org.eclipse.jgit.revwalk FooterKey getName

List of usage examples for org.eclipse.jgit.revwalk FooterKey getName

Introduction

In this page you can find the example usage for org.eclipse.jgit.revwalk FooterKey getName.

Prototype

public String getName() 

Source Link

Document

Get name of this footer line.

Usage

From source file:com.google.gerrit.server.notedb.ChangeNotesCommit.java

License:Apache License

public List<String> getFooterLineValues(FooterKey key) {
    if (footerLines == null) {
        List<FooterLine> src = getFooterLines();
        footerLines = ArrayListMultimap.create(src.size(), 1);
        for (FooterLine fl : src) {
            footerLines.put(fl.getKey().toLowerCase(), fl.getValue());
        }/*w ww.  j  ava2 s  .c  o m*/
    }
    return footerLines.get(key.getName().toLowerCase());
}

From source file:com.google.gerrit.server.notedb.ChangeNotesParser.java

License:Apache License

private ConfigInvalidException expectedOneFooter(FooterKey footer, List<String> actual) {
    return parseException("missing or multiple %s: %s", footer.getName(), actual);
}

From source file:com.google.gerrit.server.notedb.ChangeNotesParser.java

License:Apache License

private ConfigInvalidException invalidFooter(FooterKey footer, String actual) {
    return parseException("invalid %s: %s", footer.getName(), actual);
}

From source file:com.google.gerrit.server.notedb.ChangeUpdate.java

License:Apache License

private static StringBuilder addFooter(StringBuilder sb, FooterKey footer) {
    return sb.append(footer.getName()).append(": ");
}