Exemplo n.º 1
0
// 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 ""
}
Exemplo n.º 2
0
func (v *Reference) Target() *Oid {
	return newOidFromC(C.git_reference_target(v.ptr))
}
Exemplo n.º 3
0
func (ref *Reference) Target() string {
	return C.GoString(C.git_reference_target(ref.git_reference))
}