resolvePath: from a commit ref and a path, it will gives the tree or blob reference of the object at the specific path (see example).

getObject: from a SHA1 reference, gives a high level object (Commit, Blob, Tree, Tag, Delta) from the git repository. if called with resolveDelta set, it will resolves deltas to be simple objects with the deltas applied.

getObjectRaw: similar to getObject but gives a raw representation (lazy bytestring) of the object.

getCommit: similar to getObject but gives back a commit.

getTree: similar to getObject but gives back a tree.

API Example

resolving path of the README file and returning the reference to the blob :