repack_without_refs(): make the refnames argument a string_list
commit4a45b2f347245d321bf5c07fbe3f8091d122732f
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 25 Nov 2014 08:02:32 +0000 (25 09:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Nov 2014 18:09:58 +0000 (25 10:09 -0800)
tree31d312133a1e3477343face2db8bf865e9f379f3
parent6d6d06c9012e96d74e9ea7aeeb6ce6dcd1a11b0f
repack_without_refs(): make the refnames argument a string_list

Most of the callers have string_lists available already, whereas two
of them had to read data out of a string_list into an array of strings
just to call this function. So change repack_without_refs() to take
the list of refnames to omit as a string_list, and change the callers
accordingly.

Suggested-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
refs.c
refs.h