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
a9d6b9d5
Commit
a9d6b9d5
authored
Jul 31, 2017
by
Edward Thomson
Committed by
GitHub
Jul 31, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4304 from pks-t/pks/patch-buffers
patch_generate: represent buffers as void pointers
parents
dca8c44f
9093ced6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/git2/patch.h
+2
-2
src/patch_generate.c
+2
-2
No files found.
include/git2/patch.h
View file @
a9d6b9d5
...
...
@@ -96,7 +96,7 @@ GIT_EXTERN(int) git_patch_from_blob_and_buffer(
git_patch
**
out
,
const
git_blob
*
old_blob
,
const
char
*
old_as_path
,
const
char
*
buffer
,
const
void
*
buffer
,
size_t
buffer_len
,
const
char
*
buffer_as_path
,
const
git_diff_options
*
opts
);
...
...
@@ -124,7 +124,7 @@ GIT_EXTERN(int) git_patch_from_buffers(
const
void
*
old_buffer
,
size_t
old_len
,
const
char
*
old_as_path
,
const
char
*
new_buffer
,
const
void
*
new_buffer
,
size_t
new_len
,
const
char
*
new_as_path
,
const
git_diff_options
*
opts
);
...
...
src/patch_generate.c
View file @
a9d6b9d5
...
...
@@ -641,7 +641,7 @@ int git_patch_from_blob_and_buffer(
git_patch
**
out
,
const
git_blob
*
old_blob
,
const
char
*
old_path
,
const
char
*
buf
,
const
void
*
buf
,
size_t
buflen
,
const
char
*
buf_path
,
const
git_diff_options
*
opts
)
...
...
@@ -680,7 +680,7 @@ int git_patch_from_buffers(
const
void
*
old_buf
,
size_t
old_len
,
const
char
*
old_path
,
const
char
*
new_buf
,
const
void
*
new_buf
,
size_t
new_len
,
const
char
*
new_path
,
const
git_diff_options
*
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