/** * Locate a reference to a tree without loading it. * <p> * The tree may or may not exist in the repository. It is impossible to tell * from this method's return value. * * @param id * name of the tree object. * @return reference to the tree object. Never null. */ @NonNull public RevTree lookupTree(AnyObjectId id) { RevTree c = (RevTree) objects.get(id); if (c == null) { c = new RevTree(id); objects.add(c); } return c; }
break; case Constants.OBJ_TREE: r = new RevTree(id); break; case Constants.OBJ_BLOB:
r = new RevTree(id); r.flags |= PARSED; break;
obj = new RevTree(idBuffer); obj.flags = SEEN; objects.add(obj);
/** * Locate a reference to a tree without loading it. * <p> * The tree may or may not exist in the repository. It is impossible to tell * from this method's return value. * * @param id * name of the tree object. * @return reference to the tree object. Never null. */ public RevTree lookupTree(final AnyObjectId id) { RevTree c = (RevTree) objects.get(id); if (c == null) { c = new RevTree(id); objects.add(c); } return c; }
/** * Locate a reference to a tree without loading it. * <p> * The tree may or may not exist in the repository. It is impossible to tell * from this method's return value. * * @param id * name of the tree object. * @return reference to the tree object. Never null. */ @NonNull public RevTree lookupTree(AnyObjectId id) { RevTree c = (RevTree) objects.get(id); if (c == null) { c = new RevTree(id); objects.add(c); } return c; }
/** * Locate a reference to a tree without loading it. * <p> * The tree may or may not exist in the repository. It is impossible to tell * from this method's return value. * * @param id * name of the tree object. * @return reference to the tree object. Never null. */ @NonNull public RevTree lookupTree(AnyObjectId id) { RevTree c = (RevTree) objects.get(id); if (c == null) { c = new RevTree(id); objects.add(c); } return c; }
break; case Constants.OBJ_TREE: r = new RevTree(id); break; case Constants.OBJ_BLOB:
break; case Constants.OBJ_TREE: r = new RevTree(id); break; case Constants.OBJ_BLOB:
break; case Constants.OBJ_TREE: r = new RevTree(id); break; case Constants.OBJ_BLOB:
r = new RevTree(id); r.flags |= PARSED; break;
r = new RevTree(id); r.flags |= PARSED; break;
r = new RevTree(id); r.flags |= PARSED; break;
obj = new RevTree(idBuffer); obj.flags = SEEN; objects.add(obj);
obj = new RevTree(idBuffer); obj.flags = SEEN; objects.add(obj);
obj = new RevTree(idBuffer); obj.flags = SEEN; objects.add(obj);