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
20363d58
Commit
20363d58
authored
Jun 28, 2014
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflog: constify byindex
parent
a2a23322
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/git2/reflog.h
+1
-1
src/reflog.c
+1
-1
No files found.
include/git2/reflog.h
View file @
20363d58
...
...
@@ -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
...
...
src/reflog.c
View file @
20363d58
...
...
@@ -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
);
...
...
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