mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 09:32:59 +00:00
Mark git_oid parameters const when they shouldn't be modified
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
c15648cbd0
commit
44181c23ea
@ -35,7 +35,7 @@
|
||||
|
||||
#include "git_odb.h"
|
||||
|
||||
git_result git_odb_sread(git_sobj *out, git_odb *db, git_oid *id)
|
||||
git_result git_odb_sread(git_sobj *out, git_odb *db, const git_oid *id)
|
||||
{
|
||||
if (!git_odb__sread_packed(out, db, id))
|
||||
return GIT_SUCCESS;
|
||||
|
@ -106,7 +106,7 @@ typedef struct {
|
||||
* @return GIT_SUCCESS if the object was read;
|
||||
* GIT_ENOTFOUND if the object is not in the database.
|
||||
*/
|
||||
GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, git_oid *id);
|
||||
GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, const git_oid *id);
|
||||
|
||||
/**
|
||||
* Read a small object from the database using only pack files.
|
||||
@ -116,7 +116,7 @@ GIT_EXTERN(git_result) git_odb_sread(git_sobj *out, git_odb *db, git_oid *id);
|
||||
* @return GIT_SUCCESS if the object was read;
|
||||
* GIT_ENOTFOUND if the object is not in the database.
|
||||
*/
|
||||
GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, git_oid *id);
|
||||
GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, const git_oid *id);
|
||||
|
||||
/**
|
||||
* Read a small object from the database using only loose object files.
|
||||
@ -126,7 +126,7 @@ GIT_EXTERN(git_result) git_odb__sread_packed(git_sobj *out, git_odb *db, git_oid
|
||||
* @return GIT_SUCCESS if the object was read;
|
||||
* GIT_ENOTFOUND if the object is not in the database.
|
||||
*/
|
||||
GIT_EXTERN(git_result) git_odb__sread_loose(git_sobj *out, git_odb *db, git_oid *id);
|
||||
GIT_EXTERN(git_result) git_odb__sread_loose(git_sobj *out, git_odb *db, const git_oid *id);
|
||||
|
||||
/** @} */
|
||||
GIT_END_DECL
|
||||
|
Loading…
Reference in New Issue
Block a user