mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 16:00:04 +00:00
git_mergebase: Constness-Fix for consistency
This commit is contained in:
parent
17b06f4d47
commit
857323d4db
@ -28,7 +28,7 @@ GIT_BEGIN_DECL
|
||||
* @param one one of the commits
|
||||
* @param two the other commit
|
||||
*/
|
||||
GIT_EXTERN(int) git_merge_base(git_oid *out, git_repository *repo, git_oid *one, git_oid *two);
|
||||
GIT_EXTERN(int) git_merge_base(git_oid *out, git_repository *repo, const git_oid *one, const git_oid *two);
|
||||
|
||||
/**
|
||||
* Find a merge base given a list of commits
|
||||
|
@ -419,7 +419,7 @@ cleanup:
|
||||
return error;
|
||||
}
|
||||
|
||||
int git_merge_base(git_oid *out, git_repository *repo, git_oid *one, git_oid *two)
|
||||
int git_merge_base(git_oid *out, git_repository *repo, const git_oid *one, const git_oid *two)
|
||||
{
|
||||
git_revwalk *walk;
|
||||
git_vector list;
|
||||
|
Loading…
Reference in New Issue
Block a user