Skip to content

Commit bbc4830

Browse files
authored
Merge pull request #357 from hjiayz/patch-1
fix id_old
2 parents 3938af1 + e55f57d commit bbc4830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflog.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'reflog> ReflogEntry<'reflog> {
115115

116116
/// Get the old oid
117117
pub fn id_old(&self) -> Oid {
118-
unsafe { Binding::from_raw(raw::git_reflog_entry_id_new(self.raw)) }
118+
unsafe { Binding::from_raw(raw::git_reflog_entry_id_old(self.raw)) }
119119
}
120120

121121
/// Get the log message, returning `None` on invalid UTF-8.

0 commit comments

Comments
 (0)