libgit2/pygit2 — pull request #138 by cholin (2012-10-09 11:16:24+00:00)
Title: merged create_reference and create_reference_symbolic and added force-Option

To be more pythonic: merged methods create_reference and create_reference_symbolic
and added force-Option. To make a new symbolic reference you have provide symbolic=True
as an additional parameter. If force=True references will although be overridden.
Otherwise an exception is raised if the reference exists.

Examples:

# normal reference
repo.create_reference('refs/heads/foo', repo.head.hex)

# override reference with new value
repo.create_reference('refs/heads/foo', repo.head.hex, force=True)

# symbolic reference
repo.create_reference('refs/tags/foo', 'refs/heads/master', symbolic = True)