expandOid
Expand and resolve a short oid into a full oid
param | type [= default] | description |
---|---|---|
core | string = 'default' | The plugin core identifier to use for plugin injection |
fs [deprecated] | FileSystem | The filesystem containing the git repo. Overrides the fs provided by the plugin system. |
dir | string | The working tree directory path |
gitdir | string = join(dir,'.git') | The git directory path |
oid | string | The shortened oid prefix to expand (like "0414d2a") |
return | Promise<string> | Resolves successfully with the full oid (like "0414d2a286d7bbc7a4a326a61c1f9f888a8ab87f") |
Example Code:
let oid = await git.expandOid({ dir: '$input((/))', oid: '$input((0414d2a))'})
console.log(oid)