mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-22 22:20:02 +00:00
Merge pull request #2023 from arthurschreiber/patch-1
Add missing `git_reference_symbolic_create_with_log`.
This commit is contained in:
commit
fe959e5273
17
src/refs.c
17
src/refs.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user