Fork me on GitHub
nodegit by tbranyen & faceleg

Oid

new Oid(rawOid)

Convenience Oid constructor.
Parameters:
Name Type Argument Default Description
rawOid git.raw.Oid <optional>
new git.rawOid Raw Oid object.
Source:

Methods

fromString(sha, callback)

Create Oid object from string.
Parameters:
Name Type Description
sha String
callback Oid~fromStringCallback
Source:

getRawOid() → {git.raw.Oid}

Source:
Returns:
The wrapped raw Oid object.
Type
git.raw.Oid

sha(callback)

Convert the raw Oid to a SHA
Parameters:
Name Type Description
callback Oid~shaCallback
Source:

Type Definitions

fromStringCallback(error, oid)

Parameters:
Name Type Description
error GitError | null An Error or null if successful.
oid Oid | null The new Oid object.
Source:

shaCallback(error, sha)

Parameters:
Name Type Description
error GitError | null An Error or null if successful.
sha String | null The SHA.
Source: