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
d1c4312a
Commit
d1c4312a
authored
May 03, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diff: improve git_diff_blobs() documentation
parent
9a29f8d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
include/git2/diff.h
+8
-0
No files found.
include/git2/diff.h
View file @
d1c4312a
...
@@ -337,6 +337,14 @@ GIT_EXTERN(int) git_diff_print_patch(
...
@@ -337,6 +337,14 @@ GIT_EXTERN(int) git_diff_print_patch(
/**
/**
* Directly run a text diff on two blobs.
* Directly run a text diff on two blobs.
*
* Compared to a file, a blob lacks some contextual information. As such, the
* `git_diff_file` parameters of the callbacks will be filled accordingly to the following:
* `mode` will be set to 0, `path` will be set to NULL. When dealing with a NULL blob, `oid`
* will be set to 0.
*
* When at least one of the blobs being dealt with is binary, the `git_diff_delta` binary
* attribute will be set to 1 and no call to the hunk_cb nor line_cb will be made.
*/
*/
GIT_EXTERN
(
int
)
git_diff_blobs
(
GIT_EXTERN
(
int
)
git_diff_blobs
(
git_blob
*
old_blob
,
git_blob
*
old_blob
,
...
...
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