Skip to content

Commit

Permalink
Changed Repository::find_reference_dwim to Repository::resolve_refere…
Browse files Browse the repository at this point in the history
…nce_from_short_name.
  • Loading branch information
iancormac84 authored and alexcrichton committed May 16, 2019
1 parent 2a1c92d commit f35dd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ impl Repository {
/// `Repository::find_reference` with teeth; give the method your reference in
/// human-readable format e.g. 'master' instead of 'refs/heads/master', and it
/// will do-what-you-mean, returning the `Reference`.
pub fn find_reference_dwim(&self, refname: &str) -> Result<Reference, Error> {
pub fn resolve_reference_from_short_name(&self, refname: &str) -> Result<Reference, Error> {
let refname = try!(CString::new(refname));
let mut raw = ptr::null_mut();
unsafe {
Expand Down

0 comments on commit f35dd8f

Please sign in to comment.