]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/clone.c
clone: factor out checking for an alternate path
authorStefan Beller <sbeller@google.com>
Mon, 15 Aug 2016 21:53:24 +0000 (14:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Aug 2016 22:28:01 +0000 (15:28 -0700)
commit9eeea7d2bc8132cfaa1b79271c077e80317f3ae1
tree311909d3eefff75811402fcaaa95b51549645019
parent5f50f33e875cc877747a40a80e8ead73db0ec8c1
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 <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
cache.h
sha1_file.c