git_transaction_set_symbolic_target

Set the target of a reference

Set the target of the specified reference. This reference must be locked.

extern (C) nothrow @nogc
int
git_transaction_set_symbolic_target
(,
const(char)* refname
,
const(char)* target
,,
const(char)* msg
)

Parameters

tx libgit2_d.types.git_transaction*

the transaction

refname const(char)*

reference to update

target const(char)*

target to set the reference to

sig const(libgit2_d.types.git_signature)*

signature to use in the reflog; pass null to read the identity from the config

msg const(char)*

message to use in the reflog

Return Value

Type: int

0, git_error_code.GIT_ENOTFOUND if the reference is not among the locked ones, or an error code

Meta