diff: handle sha1 abbreviations outside of repository