set_symbolic_target


Description:

public Ref? set_symbolic_target (string target, string? log_message) throws Error

Create a new reference with the same name as the given reference but a different symbolic target.

The reference must be a symbolic reference, otherwise this will fail.

The new reference will be written to disk, overwriting the given reference.

The target name will be checked for validity. See `ggit_ref_create_symbolic()` for rules about valid names.

Parameters:

this

a Ref.

target

The new target for the reference.

log_message

The one line long message to be appended to the reflog.

Returns:

the newly created Ref or null.