Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ref-ish and do-what-i-mean reference lookups #923

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

rcoup
Copy link
Contributor

@rcoup rcoup commented Jul 1, 2019

Fixes #922

  1. Repository.lookup_reference_dwim('master') uses shorthand branch names, remote branches, tag names to find valid references
  2. Repository.resolve_refish('master') additionally supports HEAD/HEAD~1/commit SHAs/etc, and returns a (commit, reference) pair.

- Repository.lookup_reference_dwim('master') uses shorthand branch names, remote branches, tags to find references
- Repository.resolve_refish('master') additionally supports HEAD/HEAD~1/etc, and returns a (commit,reference) pair.
@jdavid jdavid merged commit fd9d9d3 into libgit2:master Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolving "refish"
2 participants