From: Michael Haggerty Date: Sat, 25 May 2013 09:08:21 +0000 (+0200) Subject: string_list_add_refs_by_glob(): add a comment about memory management X-Git-Tag: v1.8.4-rc0~170^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8c46bf904fe95105faaa1823332c91d2802182c2?hp=8c46bf904fe95105faaa1823332c91d2802182c2 string_list_add_refs_by_glob(): add a comment about memory management Since string_list_add_one_ref() adds refname to the string list, but the lifetime of refname is limited, it is important that the string_list passed to string_list_add_one_ref() has strdup_strings set. Document this fact. All current callers do the right thing. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano ---