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
d4e03be6
Commit
d4e03be6
authored
Jun 30, 2017
by
Andrey Davydov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git_reset_*: pass parameters as const pointers
parent
c26ce784
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
include/git2/reset.h
+4
-4
src/reset.c
+5
-5
No files found.
include/git2/reset.h
View file @
d4e03be6
...
@@ -61,7 +61,7 @@ typedef enum {
...
@@ -61,7 +61,7 @@ typedef enum {
*/
*/
GIT_EXTERN
(
int
)
git_reset
(
GIT_EXTERN
(
int
)
git_reset
(
git_repository
*
repo
,
git_repository
*
repo
,
git_object
*
target
,
const
git_object
*
target
,
git_reset_t
reset_type
,
git_reset_t
reset_type
,
const
git_checkout_options
*
checkout_opts
);
const
git_checkout_options
*
checkout_opts
);
...
@@ -79,7 +79,7 @@ GIT_EXTERN(int) git_reset(
...
@@ -79,7 +79,7 @@ GIT_EXTERN(int) git_reset(
*/
*/
GIT_EXTERN
(
int
)
git_reset_from_annotated
(
GIT_EXTERN
(
int
)
git_reset_from_annotated
(
git_repository
*
repo
,
git_repository
*
repo
,
git_annotated_commit
*
commit
,
const
git_annotated_commit
*
commit
,
git_reset_t
reset_type
,
git_reset_t
reset_type
,
const
git_checkout_options
*
checkout_opts
);
const
git_checkout_options
*
checkout_opts
);
...
@@ -103,8 +103,8 @@ GIT_EXTERN(int) git_reset_from_annotated(
...
@@ -103,8 +103,8 @@ GIT_EXTERN(int) git_reset_from_annotated(
*/
*/
GIT_EXTERN
(
int
)
git_reset_default
(
GIT_EXTERN
(
int
)
git_reset_default
(
git_repository
*
repo
,
git_repository
*
repo
,
git_object
*
target
,
const
git_object
*
target
,
git_strarray
*
pathspecs
);
const
git_strarray
*
pathspecs
);
/** @} */
/** @} */
GIT_END_DECL
GIT_END_DECL
...
...
src/reset.c
View file @
d4e03be6
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
int
git_reset_default
(
int
git_reset_default
(
git_repository
*
repo
,
git_repository
*
repo
,
git_object
*
target
,
const
git_object
*
target
,
git_strarray
*
pathspecs
)
const
git_strarray
*
pathspecs
)
{
{
git_object
*
commit
=
NULL
;
git_object
*
commit
=
NULL
;
git_tree
*
tree
=
NULL
;
git_tree
*
tree
=
NULL
;
...
@@ -100,7 +100,7 @@ cleanup:
...
@@ -100,7 +100,7 @@ cleanup:
static
int
reset
(
static
int
reset
(
git_repository
*
repo
,
git_repository
*
repo
,
git_object
*
target
,
const
git_object
*
target
,
const
char
*
to
,
const
char
*
to
,
git_reset_t
reset_type
,
git_reset_t
reset_type
,
const
git_checkout_options
*
checkout_opts
)
const
git_checkout_options
*
checkout_opts
)
...
@@ -182,7 +182,7 @@ cleanup:
...
@@ -182,7 +182,7 @@ cleanup:
int
git_reset
(
int
git_reset
(
git_repository
*
repo
,
git_repository
*
repo
,
git_object
*
target
,
const
git_object
*
target
,
git_reset_t
reset_type
,
git_reset_t
reset_type
,
const
git_checkout_options
*
checkout_opts
)
const
git_checkout_options
*
checkout_opts
)
{
{
...
@@ -191,7 +191,7 @@ int git_reset(
...
@@ -191,7 +191,7 @@ int git_reset(
int
git_reset_from_annotated
(
int
git_reset_from_annotated
(
git_repository
*
repo
,
git_repository
*
repo
,
git_annotated_commit
*
commit
,
const
git_annotated_commit
*
commit
,
git_reset_t
reset_type
,
git_reset_t
reset_type
,
const
git_checkout_options
*
checkout_opts
)
const
git_checkout_options
*
checkout_opts
)
{
{
...
...
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