try {
final ObjectLoader loader = reader.open(objectId);
final StringBuilder sb = new StringBuilder();
sb.append(refName);
sb.append('\n');
sb.append(reader.abbreviate(objectId).name());
sb.append(" - "); //$NON-NLS-1$
switch (loader.getType()) {
case Constants.OBJ_COMMIT:
RevCommit c = new RevWalk(db).parseCommit(objectId);