From: Stefan Beller Date: Mon, 15 Aug 2016 21:53:24 +0000 (-0700) Subject: clone: factor out checking for an alternate path X-Git-Tag: v2.11.0-rc0~172^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9eeea7d2bc8132cfaa1b79271c077e80317f3ae1?hp=9eeea7d2bc8132cfaa1b79271c077e80317f3ae1 clone: factor out checking for an alternate path In a later patch we want to determine if a path is suitable as an alternate from other commands than builtin/clone. Move the checking functionality of `add_one_reference` to `compute_alternate_path` that is defined in cache.h. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano ---