new Oid(rawOid)
Convenience Oid constructor.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
rawOid |
git.raw.Oid |
<optional> |
new git.rawOid | Raw Oid object. |
- Source:
- oid.js, line 10
Methods
-
fromString(sha, callback)
-
Create Oid object from string.
Parameters:
Name Type Description sha
String callback
Oid~fromStringCallback - Source:
- oid.js, line 31
-
getRawOid() → {git.raw.Oid}
-
- Source:
- oid.js, line 21
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:
- oid.js, line 51
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:
- oid.js, line 32
-
shaCallback(error, sha)
-
Parameters:
Name Type Description error
GitError | null An Error or null if successful. sha
String | null The SHA. - Source:
- oid.js, line 52