Skip to content

Commit f35dd8f

Browse files
iancormac84alexcrichton
authored andcommitted
Changed Repository::find_reference_dwim to Repository::resolve_reference_from_short_name.
1 parent 2a1c92d commit f35dd8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ impl Repository {
12221222
/// `Repository::find_reference` with teeth; give the method your reference in
12231223
/// human-readable format e.g. 'master' instead of 'refs/heads/master', and it
12241224
/// will do-what-you-mean, returning the `Reference`.
1225-
pub fn find_reference_dwim(&self, refname: &str) -> Result<Reference, Error> {
1225+
pub fn resolve_reference_from_short_name(&self, refname: &str) -> Result<Reference, Error> {
12261226
let refname = try!(CString::new(refname));
12271227
let mut raw = ptr::null_mut();
12281228
unsafe {

0 commit comments

Comments
 (0)