Isomorphic-git: New feature: expand oid

Created on 23 Jul 2018  路  1Comment  路  Source: isomorphic-git/isomorphic-git

Hey,

I would like a new command to expand a given short SHA-1 to a full SHA-1.

Example:

git.expandOid({ fs, dir: '.', oid: '73caa8b6' })
// => "73caa8b6f252471d0f70fdc1139dacbfcd37b843"

NOTE:

  • Short IDs on GitHub are 7 characters
  • Short IDs on GitLab are 8 characters

WDYT?

enhancement

Most helpful comment

:tada: This issue has been resolved in version 0.33.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

>All comments

:tada: This issue has been resolved in version 0.33.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mojavelinux picture mojavelinux  路  4Comments

TomasHubelbauer picture TomasHubelbauer  路  6Comments

wmhilton picture wmhilton  路  6Comments

jcubic picture jcubic  路  4Comments

westurner picture westurner  路  7Comments