Commit Diff


commit - 3f60a8ef49086101685260fcb829f578cdf6d320
commit + 3bf198ba335fa30c8d16efb5c8e496200ac99c05
blob - 5255d076c915accf159940978b821d06803ff2f8
blob + 39623c468e733ee08abb50eafe29202b2b0a04ef
--- include/got_blame.h
+++ include/got_blame.h
@@ -30,8 +30,8 @@ const struct got_error *got_blame(const char *, struct
  * which last changed this line.
  *
  * The callback is invoked for each commit as history is traversed.
- * If no changes to the file were made in a commit, line number -1 and
- * commit ID NULL will be reported.
+ * If no changes to the file were made in a commit, line number -1 will
+ * be reported.
  *
  * If the callback returns GOT_ERR_ITER_COMPLETED, the blame operation
  * will be aborted and this function returns NULL.
blob - a6ac4fec63e6c9041d7c5cc75a0c8df7a3cf86d2
blob + 898bae87d0cee237f56a4ac55524871c73e5f615
--- lib/blame.c
+++ lib/blame.c
@@ -133,7 +133,7 @@ blame_commit(struct got_blame *blame, struct got_objec
 			}
 		}
 	} else if (cb)
-		err = cb(arg, blame->nlines, -1, NULL);
+		err = cb(arg, blame->nlines, -1, id);
 done:
 	if (obj)
 		got_object_close(obj);