prune_remote(): initialize both delete_refs lists in a single loop
commit28d3f214d12af4a3d7e625faf4bb0af6c735fa8b
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 25 Nov 2014 08:02:30 +0000 (25 09:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Nov 2014 18:09:45 +0000 (25 10:09 -0800)
tree08c9a1ef176b1c34adabced7939c9f8d52efc13c
parent16d4fa3d9667ca28a519c46c1b1c752a848a693c
prune_remote(): initialize both delete_refs lists in a single loop

Also free them together at the end of the function.

In a moment, the array version will become redundant. Managing them
together makes later steps more obvious.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c