File path resolution was already possible for symbolic refs or sha1s,
but the check that the sha1ish starts with refs/ was bypassing a full resolve.
This change removes the need to first resolve the ref to a sha1 and then
resolve again prepending the file path to the sha1.
Richard Maw (3):
ll.git2: Add revparse_single interface
gall.repository: Use revparse_single to normalise
tests: Add test for file sha1ish normalise
lib/gall/ll/git2.c | 25 +++++++++++++++++++++++++
lib/gall/repository.lua | 7 +------
test/test-gall.repository.lua | 5 +++++
3 files changed, 31 insertions(+), 6 deletions(-)