summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-05-07 13:50:52 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-05-07 13:50:52 +0200
commit08d2797b37219004e5bcb08da2a1c8ad0f4e7be6 (patch)
treea329a6657d0744b4cce5a1d627c1a5ae9d6d8bc9 /src
parent549b3b0919f28f843dc2a40b1e71c98a87c8652f (diff)
Proper commit id tracking
This recovers a lot of missing links in the graph...
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
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());