summaryrefslogtreecommitdiff
path: root/kwset.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-02-26 20:39:48 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-02-27 13:41:21 -0800
commitf98c2f7e53062a59f67914337c0b45c82393e11f (patch)
tree7236356f1c027456bb51f4f4d5be4c7c8374a84e /kwset.h
parentMerge branch 'maint-1.9' into maint-2.0 (diff)
downloadtgif-f98c2f7e53062a59f67914337c0b45c82393e11f.tar.xz
diffcore-rename: split locate_rename_dst into two functions
This function manages the mapping of destination pathnames to filepairs, and it handles both insertion and lookup. This makes the return value a bit confusing, as we return a newly created entry (even though no caller cares), and have no room to indicate to the caller that an entry already existed. Instead, let's break this up into two distinct functions, both backed by a common binary search. The binary search will use our normal "return the index if we found something, or negative index minus one to show where it would have gone" semantics. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'kwset.h')
0 files changed, 0 insertions, 0 deletions