File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,16 @@ GIT_EXTERN(int) git_oid_fromstr(git_oid *out, const char *str);
5050 * Parse a hex formatted null-terminated string into a git_oid.
5151 *
5252 * @param out oid structure the result is written into.
53- * @param str input hex string; must be at least 4 characters
54- * long and null-terminated.
53+ * @param str input hex string; must be null-terminated.
5554 * @return 0 or an error code
5655 */
5756GIT_EXTERN (int ) git_oid_fromstrp (git_oid * out , const char * str );
5857
5958/**
60- * Parse N characters of a hex formatted object id into a git_oid
59+ * Parse N characters of a hex formatted object id into a git_oid.
6160 *
62- * If N is odd, N-1 characters will be parsed instead.
63- * The remaining space in the git_oid will be set to zero.
61+ * If N is odd, the last byte's high nibble will be read in and the
62+ * low nibble set to zero.
6463 *
6564 * @param out oid structure the result is written into.
6665 * @param str input hex string of at least size `length`
You can’t perform that action at this time.
0 commit comments