Example usage for org.eclipse.jgit.notes NoteMap shortenRefName

List of usage examples for org.eclipse.jgit.notes NoteMap shortenRefName

Introduction

In this page you can find the example usage for org.eclipse.jgit.notes NoteMap shortenRefName.

Prototype

public static String shortenRefName(String noteRefName) 

Source Link

Document

Shorten the note ref name by trimming off the org.eclipse.jgit.lib.Constants#R_NOTES prefix if it exists.

Usage

From source file:org.eclipse.egit.ui.internal.commit.RepositoryCommitNote.java

License:Open Source License

public String getLabel(Object o) {
    return NoteMap.shortenRefName(ref.getName());
}