Commit b60d95c714f5e68f07c5251aebbe72ba3ad5806d

Russell Belfer 2013-05-01T15:55:54

clarify error propogation

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/tree.c b/src/tree.c
index 79cbcff..a48b322 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -149,7 +149,7 @@ static int tree_key_search(
 	/* Initial homing search; find an entry on the tree with
 	 * the same prefix as the filename we're looking for */
 	if (git_vector_bsearch2(&homing, entries, &homing_search_cmp, &ksearch) < 0)
-		return GIT_ENOTFOUND;
+		return GIT_ENOTFOUND; /* just a signal error; not passed back to user */
 
 	/* We found a common prefix. Look forward as long as
 	 * there are entries that share the common prefix */