summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-10-19 01:34:42 +0200
committerVicent Marti <tanoku@gmail.com>2011-10-19 01:34:42 +0200
commit8cf2de078def3820a3a3208496ba705df28aad15 (patch)
tree900e93dfb962101dcb617ff9feb07b74e0e48b38 /include/git2/tree.h
parent5fa1bed0f7da8959f561c49fba6975812f80546a (diff)
downloadlibgit2-8cf2de078def3820a3a3208496ba705df28aad15.tar.gz
tree: Fix lookups by entry name
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index 8d638f723..e30595016 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -88,6 +88,9 @@ GIT_EXTERN(unsigned int) git_tree_entrycount(git_tree *tree);
/**
* Lookup a tree entry by its filename
*
+ * Note that if the entry in the tree is a folder instead of
+ * a standard file, the given name must be ended with a slash.
+ *
* @param tree a previously loaded tree.
* @param filename the filename of the desired entry
* @return the tree entry; NULL if not found
@@ -203,6 +206,9 @@ GIT_EXTERN(void) git_treebuilder_free(git_treebuilder *bld);
/**
* Get an entry from the builder from its filename
*
+ * Note that if the entry in the tree is a folder instead of
+ * a standard file, the given name must be ended with a slash.
+ *
* The returned entry is owned by the builder and should
* not be freed manually.
*