diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-05-07 13:50:52 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-05-07 13:50:52 +0200 |
commit | 08d2797b37219004e5bcb08da2a1c8ad0f4e7be6 (patch) | |
tree | a329a6657d0744b4cce5a1d627c1a5ae9d6d8bc9 | |
parent | 549b3b0919f28f843dc2a40b1e71c98a87c8652f (diff) |
Proper commit id tracking
This recovers a lot of missing links in the graph...
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |