mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 12:24:58 +00:00
reflog: constify byindex
This commit is contained in:
parent
a2a2332219
commit
20363d583c
@ -102,7 +102,7 @@ GIT_EXTERN(size_t) git_reflog_entrycount(git_reflog *reflog);
|
||||
* equal to 0 (zero) and less than `git_reflog_entrycount()`.
|
||||
* @return the entry; NULL if not found
|
||||
*/
|
||||
GIT_EXTERN(const git_reflog_entry *) git_reflog_entry_byindex(git_reflog *reflog, size_t idx);
|
||||
GIT_EXTERN(const git_reflog_entry *) git_reflog_entry_byindex(const git_reflog *reflog, size_t idx);
|
||||
|
||||
/**
|
||||
* Remove an entry from the reflog by its index
|
||||
|
@ -148,7 +148,7 @@ size_t git_reflog_entrycount(git_reflog *reflog)
|
||||
return reflog->entries.length;
|
||||
}
|
||||
|
||||
const git_reflog_entry * git_reflog_entry_byindex(git_reflog *reflog, size_t idx)
|
||||
const git_reflog_entry * git_reflog_entry_byindex(const git_reflog *reflog, size_t idx)
|
||||
{
|
||||
assert(reflog);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user