Commit 89a4e64fc709e3ed8df0f6d998a11599a842ca37

Stefan Sperling 2018-07-11T13:11:58

add missing call to blame callback

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/lib/blame.c b/lib/blame.c
index 898bae8..e5c55ef 100644
--- a/lib/blame.c
+++ b/lib/blame.c
@@ -105,8 +105,11 @@ blame_commit(struct got_blame *blame, struct got_object_id *id,
 	}
 
 	/* If blob hashes match then don't bother with diffing. */
-	if (got_object_id_cmp(&obj->id, &pobj->id) == 0)
+	if (got_object_id_cmp(&obj->id, &pobj->id) == 0) {
+		if (cb)
+			err = cb(arg, blame->nlines, -1, id);
 		goto done;
+	}
 
 	err = got_object_blob_open(&blob, repo, obj, 8192);
 	if (err)