chickadee » git » reference-name-set!

reference-name-set! reference name #!optional forceprocedure
reference-target-set! reference targetprocedure

reference-name-set! changes the name of the given reference to the string name. If force is given and nonfalse, any previously-existing reference of the given name will be overwritten.

reference-target-set! updates a reference to refer to the given target. If reference is an immediate reference (referring to an object ID), target must be an oid, commit, or SHA1 string. If reference is symbolic, target must be a reference or reference name. It is an error to assign a symbolic reference an OID target and vice-versa.

On success, the on-disk repository is updated immediately.