summaryrefslogtreecommitdiff
path: root/include/git2/repository.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-09-11 17:26:21 -0700
committerRussell Belfer <rb@github.com>2012-09-11 17:26:21 -0700
commita13fb55afdbf9d74c3d4b6aa76476a005da49486 (patch)
tree9755770eed5893cce9d69e22f4f5a773d8c99220 /include/git2/repository.h
parent47bfa0be6d509b60eda92705b57d3f7ba89c1c6b (diff)
downloadlibgit2-a13fb55afdbf9d74c3d4b6aa76476a005da49486.tar.gz
Add tests and improve param checks
Fixed some minor `git_repository_hashfile` issues: - Fixed incorrect doc (saying that repo could be NULL) - Added checking of object type value to acceptable ones - Added more tests for various parameter permutations
Diffstat (limited to 'include/git2/repository.h')
-rw-r--r--include/git2/repository.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h
index ebea3b0d4..32ec58dae 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -490,8 +490,7 @@ GIT_EXTERN(int) git_repository_message_remove(git_repository *repo);
* crlf filters) before generating the SHA, then use this function.
*
* @param out Output value of calculated SHA
- * @param repo Repository pointer. NULL is allowed to just use global and
- * system attributes for choosing filters.
+ * @param repo Repository pointer
* @param path Path to file on disk whose contents should be hashed. If the
* repository is not NULL, this can be a relative path.
* @param type The object type to hash as (e.g. GIT_OBJ_BLOB)