public openObject ( GitSharp.Core.WindowCursor curs, AnyObjectId objectId ) : GitSharp.Core.ObjectLoader | ||
curs | GitSharp.Core.WindowCursor | /// Temporary working space associated with the calling thread. /// |
objectId | AnyObjectId | Identity of the object to open. |
리턴 | GitSharp.Core.ObjectLoader |
public ObjectLoader openObject(WindowCursor curs, AnyObjectId objectId)
{
if (objectId == null) return null;
ObjectLoader ldr = OpenObjectImpl1(curs, objectId);
if (ldr != null)
{
return ldr;
}
ldr = OpenObjectImpl2(curs, objectId.Name, objectId);
if (ldr != null)
{
return ldr;
}
return null;
}