Return True if the given string matches the destination of this refspec, False otherwise.
(self, ref: str)
| 70 | return bool(C.git_refspec_src_matches(self._refspec, to_bytes(ref))) |
| 71 | |
| 72 | def dst_matches(self, ref: str) -> bool: |
| 73 | """Return True if the given string matches the destination of this |
| 74 | refspec, False otherwise.""" |
| 75 | return bool(C.git_refspec_dst_matches(self._refspec, to_bytes(ref))) |
| 76 | |
| 77 | def _transform(self, ref: str, fn: Callable) -> str: |
| 78 | buf = ffi.new('git_buf *', (ffi.NULL, 0)) |