diff options
Diffstat (limited to 'include/git2/object.h')
-rw-r--r-- | include/git2/object.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/object.h b/include/git2/object.h index 4cb6af0ad..cadb942e0 100644 --- a/include/git2/object.h +++ b/include/git2/object.h @@ -65,9 +65,9 @@ GIT_EXTERN(int) git_object_lookup(git_object **object, git_repository *repo, con * The object obtained will be so that its identifier * matches the first 'len' hexadecimal characters * (packets of 4 bits) of the given 'id'. - * 'len' must be long enough to identify a unique - * object matching the prefix; otherwise the method will - * fail. + * 'len' must be at least GIT_OID_MINPREFIXLEN, and + * long enough to identify a unique object matching + * the prefix; otherwise the method will fail. * * The generated reference is owned by the repository and * should be closed with the `git_object_close` method |