summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-09-21 16:20:41 -0700
committerRussell Belfer <rb@github.com>2012-09-21 16:20:41 -0700
commit63f6c82568419848e726ae6373d2ba03de0621fd (patch)
treef087cdddb9fc0b967529cf985bd9ae69ae8aa204 /include/git2
parent0cb24616eea3b92893b2a03e851a0db2c04862ef (diff)
parentf55af775ab9b6b20e66607d502ff8bcdb0b72b7d (diff)
downloadlibgit2-63f6c82568419848e726ae6373d2ba03de0621fd.tar.gz
Merge pull request #948 from csware/comment-fix
Make clear that git_odb_hashfile does not use filters
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/odb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/git2/odb.h b/include/git2/odb.h
index 1919f61a0..c6e73571b 100644
--- a/include/git2/odb.h
+++ b/include/git2/odb.h
@@ -279,8 +279,10 @@ GIT_EXTERN(int) git_odb_hash(git_oid *id, const void *data, size_t len, git_otyp
/**
* Read a file from disk and fill a git_oid with the object id
* that the file would have if it were written to the Object
- * Database as an object of the given type. Similar functionality
- * to git.git's `git hash-object` without the `-w` flag.
+ * Database as an object of the given type (w/o applying filters).
+ * Similar functionality to git.git's `git hash-object` without
+ * the `-w` flag, however, with the --no-filters flag.
+ * If you need filters, see git_repository_hashfile.
*
* @param out oid structure the result is written into.
* @param path file to read and determine object id for