-
Notifications
You must be signed in to change notification settings - Fork 534
git rev-parse? #599
Comments
There exists a method (*Repository).ResolveRevision which satisfies part of the behavior of @mcuadros was the intent that the There are a handful of other |
any update? |
@orirawlings the goals is cover all the cases. So will be great if any wants to implement it. |
This case |
@mcuadros this issue needs to be reopened, this case |
Also are you planning to cover short hashes? |
Yep I'm going to do so as well |
@antham any progress on shorthand hashes ? |
@andreimc I had some trouble to have a good solution for this problem and left it aside the time to think about it and find something better, time flies.... Let me recheck this week. |
After some search, I think it would be necessary to do something with the layer that interact with git directly, at a upper level we only handle full hash and as I see we can only iterate over commit which is very slow |
How do i find commit hash for a particular ref, ref can be a commit hash, branch name, tag name, etc
eg
a891109d49d61fc0792912f0d741b45ec1516525
a891109
refs/heads/branch
heads/branch
branch
refs/tags/tag
tag
The text was updated successfully, but these errors were encountered: