Code

refs: add "for_each_ref_in" function to refactor "for_each_*_ref" functions
authorChristian Couder <chriscool@tuxfamily.org>
Mon, 30 Mar 2009 03:07:15 +0000 (05:07 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2009 08:22:53 +0000 (01:22 -0700)
commit2a8177b63d39503b182248b04ffcc75e3495754c
tree3aa3fa4f7fa0fc216166c1946efe1d5d33657249
parenteaa759b9141f125d7e55a4b08b60497845d3c52e
refs: add "for_each_ref_in" function to refactor "for_each_*_ref" functions

The "for_each_{tag,branch,remote,replace,}_ref" functions are
redefined in terms of "for_each_ref_in" so that we can lose the
hardcoded length of prefix strings from the code.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
refs.c
refs.h