assertEquals("alice-t1-2-g3e563c5", describe(c4, "alice*"));
assertEquals("bob-t2-1-g3e563c5", describe(c4, "bob*"));
assertEquals("bob-t2-1-g3e563c5", describe(c4, "a*", "b*", "c*"));
+
+ assertEquals("bob-t2", describe(c4, false, true, 0));
} else {
assertEquals(null, describe(c2));
assertEquals(null, describe(c3));
private String longDescription(Ref tag, int depth, ObjectId tip)
throws IOException {
+ if (abbrev == 0) {
+ return formatRefName(tag.getName());
+ }
return String.format("%s-%d-g%s", formatRefName(tag.getName()), //$NON-NLS-1$
Integer.valueOf(depth),
w.getObjectReader().abbreviate(tip, abbrev).name());