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
3538f8f1
Commit
3538f8f1
authored
Feb 03, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diff docs: update `git_diff_delta` description
parent
f83c19c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
include/git2/diff.h
+3
-3
include/git2/patch.h
+3
-6
No files found.
include/git2/diff.h
View file @
3538f8f1
...
...
@@ -849,9 +849,9 @@ GIT_EXTERN(size_t) git_diff_num_deltas_of_type(
/**
* Return the diff delta for an entry in the diff list.
*
* The `git_d
elta` pointer points to internal data and you do not have
*
to release it when you are done with it. It will go away when the
* `git_diff` (or any associated `git_patch`) goes away.
* The `git_d
iff_delta` pointer points to internal data and you do not
*
have to release it when you are done with it. It will go away when
*
the *
`git_diff` (or any associated `git_patch`) goes away.
*
* Note that the flags on the delta related to whether it has binary
* content or not may not be set if there are no attributes set for the
...
...
include/git2/patch.h
View file @
3538f8f1
...
...
@@ -29,7 +29,7 @@ GIT_BEGIN_DECL
typedef
struct
git_patch
git_patch
;
/**
* Return
the diff delta and
patch for an entry in the diff list.
* Return
a
patch for an entry in the diff list.
*
* The `git_patch` is a newly created object contains the text diffs
* for the delta. You have to call `git_patch_free()` when you are
...
...
@@ -40,10 +40,6 @@ typedef struct git_patch git_patch;
* created, the output will be set to NULL, and the `binary` flag will be
* set true in the `git_diff_delta` structure.
*
* The `git_diff_delta` pointer points to internal data and you do not have
* to release it when you are done with it. It will go away when the
* `git_diff` and `git_patch` go away.
*
* It is okay to pass NULL for either of the output parameters; if you pass
* NULL for the `git_patch`, then the text diff will not be calculated.
*
...
...
@@ -139,7 +135,8 @@ GIT_EXTERN(int) git_patch_from_buffers(
GIT_EXTERN
(
void
)
git_patch_free
(
git_patch
*
patch
);
/**
* Get the delta associated with a patch
* Get the delta associated with a patch. This delta points to internal
* data and you do not have to release it when you are done with it.
*/
GIT_EXTERN
(
const
git_diff_delta
*
)
git_patch_get_delta
(
const
git_patch
*
patch
);
...
...
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