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