From: Karthik Nayak Date: Sat, 13 Jun 2015 19:37:20 +0000 (+0530) Subject: for-each-ref: clean up code X-Git-Tag: v2.6.0-rc0~116^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fc80edcae1cdaac42b2e09c64df2e5cd06e3a336?hp=fc80edcae1cdaac42b2e09c64df2e5cd06e3a336 for-each-ref: clean up code In 'grab_single_ref()' remove the extra count variable 'cnt' and use the variable 'grab_cnt' of structure 'grab_ref_cbdata' directly instead. Mentored-by: Christian Couder Mentored-by: Matthieu Moy Signed-off-by: Karthik Nayak Reviewed-by: Matthieu Moy Signed-off-by: Junio C Hamano ---