Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

CommitObject with short hash value? #634

Closed
@sergeyhush

Description

@sergeyhush

I am trying to get a commit object using a short hash value, the code below does not work:
repo.CommitObject(plumbing.NewHash("abc123"))
This assumes that there is a full hash that starts with abc123.....
Is there a way, short of iterating repo.CommitObjects(), to do what I wanted?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions