From: Junio C Hamano Date: Tue, 16 Nov 2010 17:27:16 GMT Subject: Re: [PATCH v3 1/3] Introduce sorted-array binary-search function. Message-ID: <7vy68ti3gr.fsf@alter.siamese.dyndns.org> In-Reply-To: <1289255942-19705-2-git-send-email-ydirson@altern.org> Yann Dirson writes: > We use a cpp-based template mechanism to declare the array and its > management data, as well as a search function, derived from locate_rename_dst() > from diffcore-rename.c. Thanks to Jonathan Nieder for this design idea. Hmmm.... Yet another binary search... Can we generalize the existing ones first before adding any of this in (hint: look for "git grep -w -e hi --and -e lo")?