exclude_existing(): set existing_refs.strdup_strings
commit66ce0366285f73c340f04a21b3d8be898d7bf5a7
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 25 May 2013 09:08:22 +0000 (25 11:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Jun 2013 22:28:47 +0000 (2 15:28 -0700)
tree9228243d986d6bd712662fcc02a1bdbd418f6031
parent8c46bf904fe95105faaa1823332c91d2802182c2
exclude_existing(): set existing_refs.strdup_strings

The each_ref_fn add_existing() adds refnames to the existing_refs
list.  But the lifetimes of these refnames is not guaranteed by the
refs API, so configure the string_list to make copies as it adds them.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/show-ref.c