diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-11-23 14:39:53 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-12-09 15:55:11 +0100 |
commit | f21051297cc698644ea0dc9c7122ec944dba2863 (patch) | |
tree | b94a20b868860f84c5a674bbada254e789f4e43a /include/git2/refs.h | |
parent | 8d5ec9106afbca346a8def84ef20de0a7ba2240a (diff) | |
download | libgit2-f21051297cc698644ea0dc9c7122ec944dba2863.tar.gz |
refs: expose has_log() on the backend
The frontend used to look at the file directly, but that's obviously not
the right thing to do. Expose it on the backend and use that function
instead.
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r-- | include/git2/refs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h index 31bf997fe..f88f448f0 100644 --- a/include/git2/refs.h +++ b/include/git2/refs.h @@ -548,12 +548,12 @@ GIT_EXTERN(int) git_reference_foreach_glob( /** * Check if a reflog exists for the specified reference. * - * @param ref A git reference - * + * @param repo the repository + * @param refname the reference's name * @return 0 when no reflog can be found, 1 when it exists; * otherwise an error code. */ -GIT_EXTERN(int) git_reference_has_log(git_reference *ref); +GIT_EXTERN(int) git_reference_has_log(git_repository *repo, const char *refname); /** * Ensure there is a reflog for a particular reference. |