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
b5818dda
Commit
b5818dda
authored
Jun 18, 2018
by
Sven Strickroth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix last references to deprecated git_buf_free
Signed-off-by: Sven Strickroth <email@cs-ware.de>
parent
96882f20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
include/git2/blob.h
+1
-1
include/git2/buffer.h
+1
-1
src/buffer.h
+1
-1
tests/stash/save.c
+1
-1
No files found.
include/git2/blob.h
View file @
b5818dda
...
...
@@ -105,7 +105,7 @@ GIT_EXTERN(git_off_t) git_blob_rawsize(const git_blob *blob);
* attributes set for the blob and the content detected in it.
*
* The output is written into a `git_buf` which the caller must free
* when done (via `git_buf_
fre
e`).
* when done (via `git_buf_
dispos
e`).
*
* If no filters need to be applied, then the `out` buffer will just
* be populated with a pointer to the raw content of the blob. In
...
...
include/git2/buffer.h
View file @
b5818dda
...
...
@@ -25,7 +25,7 @@ GIT_BEGIN_DECL
* caller and have the caller take responsibility for freeing that memory.
* This can be awkward if the caller does not have easy access to the same
* allocation functions that libgit2 is using. In those cases, libgit2
* will fill in a `git_buf` and the caller can use `git_buf_
fre
e()` to
* will fill in a `git_buf` and the caller can use `git_buf_
dispos
e()` to
* release it when they are done.
*
* A `git_buf` may also be used for the caller to pass in a reference to
...
...
src/buffer.h
View file @
b5818dda
...
...
@@ -76,7 +76,7 @@ extern char *git_buf_detach(git_buf *buf);
extern
int
git_buf_attach
(
git_buf
*
buf
,
char
*
ptr
,
size_t
asize
);
/* Populates a `git_buf` where the contents are not "owned" by the
* buffer, and calls to `git_buf_
fre
e` will not free the given buf.
* buffer, and calls to `git_buf_
dispos
e` will not free the given buf.
*/
extern
void
git_buf_attach_notowned
(
git_buf
*
buf
,
const
char
*
ptr
,
size_t
size
);
...
...
tests/stash/save.c
View file @
b5818dda
...
...
@@ -227,7 +227,7 @@ void test_stash_save__untracked_regression(void)
git_reference_free
(
head
);
git_commit_free
(
head_commit
);
git_buf_
fre
e
(
&
untracked_dir
);
git_buf_
dispos
e
(
&
untracked_dir
);
}
#define MESSAGE "Look Ma! I'm on TV!"
...
...
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