case RENAMED: case FAST_FORWARD: if (update.getRemoteName().startsWith(Constants.R_HEADS)) return UIIcons.BRANCH; if (update.getLocalName().startsWith(Constants.R_TAGS)) break; case NEW: if (update.getRemoteName().startsWith(Constants.R_HEADS)) return UIIcons.CREATE_BRANCH; if (update.getLocalName().startsWith(Constants.R_TAGS))
if (u.getRemoteName().startsWith(Constants.R_HEADS)) return "[new branch]"; else if (u.getLocalName().startsWith(Constants.R_TAGS))
protected void showFetchResult(final FetchResult r) throws IOException { ObjectReader reader = db.newObjectReader(); try { boolean shownURI = false; for (final TrackingRefUpdate u : r.getTrackingRefUpdates()) { if (!verbose && u.getResult() == RefUpdate.Result.NO_CHANGE) continue; final char type = shortTypeOf(u.getResult()); final String longType = longTypeOf(reader, u); final String src = abbreviateRef(u.getRemoteName(), false); final String dst = abbreviateRef(u.getLocalName(), true); if (!shownURI) { outw.println(MessageFormat.format(CLIText.get().fromURI, r.getURI())); shownURI = true; } outw.format(" %c %-17s %-10s -> %s", valueOf(type), longType, //$NON-NLS-1$ src, dst); outw.println(); } } finally { reader.release(); } showRemoteMessages(errw, r.getMessages()); }
public StyledString getStyledText(Object object) { StyledString styled = new StyledString(); final String remote = update.getRemoteName(); final String local = update.getLocalName(); styled.append(shortenRef(remote));