public void setObjectInserter(ObjectInserter oi) {walk.close();reader.close();inserter.close();inserter = oi;reader = oi.newReader();walk = new RevWalk(reader);}
public virtual void SetObjectInserter(ObjectInserter oi){if (inserter != null){inserter.Release();}inserter = oi;}