class Rugged::Repository
def create_branch(name, sha_or_ref = "HEAD")
an OID or a reference name, or a Rugged::Object instance.
sha_or_ref - The target of the branch; either a String representing
name - The name of the branch (without a full reference path)
Create a new branch in the repository
def create_branch(name, sha_or_ref = "HEAD") case sha_or_ref when Rugged::Object target = sha_or_ref.oid else target = rev_parse_oid(sha_or_ref) end branches.create(name, target) end