Skip to content

Bind git_revparse_single() #199

Closed
Closed
@nulltoken

Description

@nulltoken

This should be leveraged by

  • repo.Lookup()
  • repo.Commits.QueryBy()
  • ...

and more generally by any method bearing a parameter named shaOrReferenceName.

In order to make the API a bit more explicit, this last parameter should be renamed commitish, treeish... in order to hint the consumer about the type of the expected resolved object.

Beside the Extended Sha syntax, it may be useful to expose as well, whenever possible, an overload which accepts an ObjectId. The ObjectId based method would be part of the concrete type, whereas the string based Extended Sha method would be converted into an extension method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions