From 08d2797b37219004e5bcb08da2a1c8ad0f4e7be6 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 7 May 2020 13:50:52 +0200 Subject: Proper commit id tracking This recovers a lot of missing links in the graph... --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e7d70b3..d6e9013 100644 --- a/src/main.rs +++ b/src/main.rs @@ -195,7 +195,7 @@ fn main() -> Result<()> { match reference.peel_to_commit() { Ok(commit) => { let oid = reference.target().expect("Resolved reference is not a direct reference?"); - refmap.insert(oid, RefInfo { reference, commit }); + refmap.insert(commit.id(), RefInfo { reference, commit }); // println!("{} {}", // reference.name().expect("Invalid utf8 in reference name"), // commit.id()); -- cgit v1.2.3-70-g09d2