// Returns the name of the Target of the reference. Only // valid if the reference is symbolic. func (r Reference) Target() string { if cs := C.git_reference_target(r.ref); cs != nil { return C.GoString(cs) } return "" }
func (v *Reference) Target() *Oid { return newOidFromC(C.git_reference_target(v.ptr)) }
func (ref *Reference) Target() string { return C.GoString(C.git_reference_target(ref.git_reference)) }