clone: use OPT_STRING_LIST for --reference
authorJeff King <redacted>
Thu, 21 May 2015 04:15:19 +0000 (00:15 -0400)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clone.c
git clone https://git.99rst.org/PROJECT