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
fad04120
Commit
fad04120
authored
Mar 31, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2224 from ethomson/merge_file_const
Const up members of git_merge_file_result
parents
336e8957
7f930ded
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/git2/merge.h
+2
-2
src/merge_file.c
+2
-2
No files found.
include/git2/merge.h
View file @
fad04120
...
...
@@ -177,13 +177,13 @@ typedef struct {
* The path that the resultant merge file should use, or NULL if a
* filename conflict would occur.
*/
char
*
path
;
c
onst
c
har
*
path
;
/** The mode that the resultant merge file should use. */
unsigned
int
mode
;
/** The contents of the merge. */
unsigned
char
*
ptr
;
const
char
*
ptr
;
/** The length of the merge contents. */
size_t
len
;
...
...
src/merge_file.c
View file @
fad04120
...
...
@@ -272,8 +272,8 @@ void git_merge_file_result_free(git_merge_file_result *result)
if
(
result
==
NULL
)
return
;
git__free
(
result
->
path
);
git__free
(
(
char
*
)
result
->
path
);
/* xdiff uses malloc() not git_malloc, so we use free(), not git_free() */
free
(
result
->
ptr
);
free
(
(
char
*
)
result
->
ptr
);
}
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