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
fe959e52
Commit
fe959e52
authored
Jan 07, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2023 from arthurschreiber/patch-1
Add missing `git_reference_symbolic_create_with_log`.
parents
5ce9f9b4
0b795178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
src/refs.c
+16
-1
No files found.
src/refs.c
View file @
fe959e52
...
...
@@ -427,7 +427,7 @@ int git_reference_create_with_log(
const
git_signature
*
signature
,
const
char
*
log_message
)
{
assert
(
oid
&&
signature
&&
log_message
);
assert
(
oid
&&
signature
);
return
reference__create
(
ref_out
,
repo
,
name
,
oid
,
NULL
,
force
,
signature
,
log_message
);
...
...
@@ -444,6 +444,21 @@ int git_reference_symbolic_create(
return
reference__create
(
ref_out
,
repo
,
name
,
NULL
,
target
,
force
,
NULL
,
NULL
);
}
int
git_reference_symbolic_create_with_log
(
git_reference
**
ref_out
,
git_repository
*
repo
,
const
char
*
name
,
const
char
*
target
,
int
force
,
const
git_signature
*
signature
,
const
char
*
log_message
)
{
assert
(
target
&&
signature
);
return
reference__create
(
ref_out
,
repo
,
name
,
NULL
,
target
,
force
,
signature
,
log_message
);
}
static
int
ensure_is_an_updatable_direct_reference
(
git_reference
*
ref
)
{
if
(
ref
->
type
==
GIT_REF_OID
)
...
...
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