create_reference


Description:

public Ref? create_reference (string name, OId oid, string log_message) throws Error

Creates a new object id reference.

The reference will be created in the repository and written to the disk. The returned value must be freed with unref.

Parameters:

this

a Repository.

name

the name for the new Ref.

oid

the OId pointed to by the reference.

log_message

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

Returns:

the newly created reference.