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
4964aea0
Unverified
Commit
4964aea0
authored
Jan 03, 2018
by
Patrick Steinhardt
Committed by
GitHub
Jan 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4456 from libgit2/ethomson/treebuilder_docs
docs: git_treebuilder_insert validates entries
parents
98303ea3
346c1b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/git2/tree.h
+4
-3
No files found.
include/git2/tree.h
View file @
4964aea0
...
@@ -307,9 +307,10 @@ GIT_EXTERN(const git_tree_entry *) git_treebuilder_get(
...
@@ -307,9 +307,10 @@ GIT_EXTERN(const git_tree_entry *) git_treebuilder_get(
* pointer may not be valid past the next operation in this
* pointer may not be valid past the next operation in this
* builder. Duplicate the entry if you want to keep it.
* builder. Duplicate the entry if you want to keep it.
*
*
* No attempt is being made to ensure that the provided oid points
* By default the entry that you are inserting will be checked for
* to an existing git object in the object database, nor that the
* validity; that it exists in the object database and is of the
* attributes make sense regarding the type of the pointed at object.
* correct type. If you do not want this behavior, set the
* `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION` library option to false.
*
*
* @param out Pointer to store the entry (optional)
* @param out Pointer to store the entry (optional)
* @param bld Tree builder
* @param bld Tree builder
...
...
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