]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/clone.c
clone: use OPT_STRING_LIST for --reference
authorJeff King <peff@peff.net>
Thu, 21 May 2015 04:15:19 +0000 (00:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 May 2015 19:37:28 +0000 (12:37 -0700)
commit8ade009c952b2977508d6d88aacc290c645125d2
tree7f4e04ae95acdda25731f7c1522e1ae559e6e960
parent9a3d637541a5b6fcd84b6f5fa057e597d1696460
clone: use OPT_STRING_LIST for --reference

Not only does this save us having to implement a custom
callback, but it handles "--no-reference" in the usual way
(to clear the list).

The generic callback does copy the string, which we don't
technically need, but that should not hurt anything.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c