Override repository create_branch for casting to Gitg.Branch

This commit is contained in:
Jesse van den Kieboom 2015-08-13 08:12:05 +02:00
parent 746682d422
commit b787b70eba

View file

@ -148,6 +148,11 @@ public class Repository : Ggit.Repository
return base.lookup_reference_dwim(short_name) as Ref;
}
public new Branch create_branch(string name, Ggit.Object obj, Ggit.CreateFlags flags) throws Error
{
return base.create_branch(name, obj, flags) as Branch;
}
public new Ref create_reference(string name, Ggit.OId oid, string message) throws Error
{
return base.create_reference(name, oid, message) as Ref;