String returns the refspec's string representation
()
| 80 | |
| 81 | // String returns the refspec's string representation |
| 82 | func (s *Refspec) String() string { |
| 83 | var ret string |
| 84 | cstr := C.git_refspec_string(s.ptr) |
| 85 | |
| 86 | if cstr != nil { |
| 87 | ret = C.GoString(cstr) |
| 88 | } |
| 89 | |
| 90 | runtime.KeepAlive(s) |
| 91 | return ret |
| 92 | } |
| 93 | |
| 94 | // SrcMatches checks if a refspec's source descriptor matches a reference |
| 95 | func (s *Refspec) SrcMatches(refname string) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected