Src returns the refspec's source specifier
()
| 48 | |
| 49 | // Src returns the refspec's source specifier |
| 50 | func (s *Refspec) Src() string { |
| 51 | var ret string |
| 52 | cstr := C.git_refspec_src(s.ptr) |
| 53 | |
| 54 | if cstr != nil { |
| 55 | ret = C.GoString(cstr) |
| 56 | } |
| 57 | |
| 58 | runtime.KeepAlive(s) |
| 59 | return ret |
| 60 | } |
| 61 | |
| 62 | // Dst returns the refspec's destination specifier |
| 63 | func (s *Refspec) Dst() string { |