refs: add expand_ref()
commit41da7111f2c825ee0dcd319ec246a84b5ca0fd21
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 12 Jun 2016 10:54:02 +0000 (12 17:54 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Jun 2016 21:38:16 +0000 (13 14:38 -0700)
tree958e18cd733ee3f9febdcb7f2baf38bbae92affb
parent6d43a0cefd769c650bd114f41434ef5a7aa998e7
refs: add expand_ref()

This is basically dwim_ref() without @{} support. To be used on the
server side where we want to expand abbreviated to full ref names and
nothing else. The first user is "git clone/fetch --shallow-exclude".

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h