Beispiel #1
0
// TODO: come up with a better name for this
func (f *formatter) Deref(r objects.Ref) (int, error) {
	return fmt.Fprintf(f.Writer, "%s %s^{}", r.Commit(), r.Name())
}
Beispiel #2
0
func (f *formatter) Ref(r objects.Ref) (int, error) {
	_, rf := r.Target() // symbolic or oid
	return fmt.Fprintf(f.Writer, "%s %s", rf, r.Name())
}