remove opam.client dependency
factor string_of_reference
factor out Util.strip
fix package inference by using git's merge-base for diffs rather than GitHub's pull merge base