Commit Diff


commit - bd24772efaf9c25ba628462066f262393bf65e86
commit + 89a4e64fc709e3ed8df0f6d998a11599a842ca37
blob - 898bae87d0cee237f56a4ac55524871c73e5f615
blob + e5c55ef07aa6ac499be912c4de1fc41b0874dc2b
--- lib/blame.c
+++ lib/blame.c
@@ -105,8 +105,11 @@ blame_commit(struct got_blame *blame, struct got_objec
 	}
 
 	/* 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)