From e55f57df81e72221582a1a17866fc8314abd270e Mon Sep 17 00:00:00 2001 From: ppc Date: Wed, 26 Sep 2018 08:17:15 +0800 Subject: [PATCH] fix id_old --- src/reflog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reflog.rs b/src/reflog.rs index 6996a89dae..b4ff7a0371 100644 --- a/src/reflog.rs +++ b/src/reflog.rs @@ -115,7 +115,7 @@ impl<'reflog> ReflogEntry<'reflog> { /// Get the old oid pub fn id_old(&self) -> Oid { - unsafe { Binding::from_raw(raw::git_reflog_entry_id_new(self.raw)) } + unsafe { Binding::from_raw(raw::git_reflog_entry_id_old(self.raw)) } } /// Get the log message, returning `None` on invalid UTF-8.