replace: refactor checking ref validity
commitb6e38840921ac4a0fe07e10e632f66736745da10
authorChristian Couder <chriscool@tuxfamily.org>
Sat, 17 May 2014 12:16:35 +0000 (17 14:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 May 2014 20:39:53 +0000 (19 13:39 -0700)
tree0027a1009be48eb596edac022cf7f213e47a2577
parentf22166b5fee7dc3deaf44dda31d1b5d7ac1fdfd8
replace: refactor checking ref validity

This will be useful in a following commit when we will
want to check if the ref already exists before we let the
user edit an object.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c