summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <vicent@github.com>2014-01-07 09:58:05 -0800
committerVicent Marti <vicent@github.com>2014-01-07 09:58:05 -0800
commitfe959e52734720be143ae26f910fe137496045ed (patch)
tree4bfce1de290921418816cfa752ef5a99e4f75b01
parent5ce9f9b425ae1bb94180ccdd9d8ba6e7e4b32ae6 (diff)
parent0b7951788cb793cea45594b168e3936527a3277a (diff)
downloadlibgit2-fe959e52734720be143ae26f910fe137496045ed.tar.gz
Merge pull request #2023 from arthurschreiber/patch-1
Add missing `git_reference_symbolic_create_with_log`.
-rw-r--r--src/refs.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/refs.c b/src/refs.c
index 83343f41b..c8a833b6b 100644
--- a/src/refs.c
+++ b/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)