Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
44181c23
Commit
44181c23
authored
Oct 31, 2008
by
Shawn O. Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark git_oid parameters const when they shouldn't be modified
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
parent
c15648cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/git_odb.c
+1
-1
src/git_odb.h
+3
-3
No files found.
src/git_odb.c
View file @
44181c23
...
...
@@ -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
;
...
...
src/git_odb.h
View file @
44181c23
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment