diff options
author | Russell Belfer <rb@github.com> | 2012-08-27 11:53:59 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-08-27 11:53:59 -0700 |
commit | d8057a5b0ed644b1f72a4eb80f82da7ce8977958 (patch) | |
tree | 43c962073e49ff204f92345a2d0713bb56a56ffd /include/git2/reset.h | |
parent | 2b175ca972f2531e5ef46d24abeb831d90033a33 (diff) | |
download | libgit2-d8057a5b0ed644b1f72a4eb80f82da7ce8977958.tar.gz |
Make git_object_peel a bit smarter
This expands the types of peeling that `git_object_peel` knows
how to do to include TAG -> BLOB peeling, and makes the errors
slightly more consistent depending on the situation. It also
adds a new special behavior where peeling to ANY will peel until
the object type changes (e.g. chases TAGs to a non-TAG).
Using this expanded peeling, this replaces peeling code that was
embedded in `git_tag_peel` and `git_reset`.
Diffstat (limited to 'include/git2/reset.h')
-rw-r--r-- | include/git2/reset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/reset.h b/include/git2/reset.h index 125178748..cd263fa99 100644 --- a/include/git2/reset.h +++ b/include/git2/reset.h @@ -37,7 +37,7 @@ GIT_BEGIN_DECL * * @return GIT_SUCCESS or an error code */ -GIT_EXTERN(int) git_reset(git_repository *repo, const git_object *target, git_reset_type reset_type); +GIT_EXTERN(int) git_reset(git_repository *repo, git_object *target, git_reset_type reset_type); /** @} */ GIT_END_DECL |