summaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-10-21 03:30:53 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-10-21 03:30:53 -0700
commitaec8fa1f587d68a0e50ada2720c8dc6e09709a9c (patch)
treef082c5c9ce73f890fb2588963a24857a8fa922a3 /environment.c
parentgit-pickaxe: get rid of wasteful find_origin(). (diff)
downloadtgif-aec8fa1f587d68a0e50ada2720c8dc6e09709a9c.tar.xz
git-pickaxe: swap comparison loop used for -C
When assigning blames for code movements across file boundaries, we used to iterate over blame entries (i.e. groups of lines to be blamed) in the outer loop and compared each entry with paths in the parent commit in an inner loop. This meant that we opened the blob data from each path number of times. Reorganize the loop so that we read the same path only once, and compare it against all relevant blame entries. This should perform better, but seems to give mixed results, though. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'environment.c')
0 files changed, 0 insertions, 0 deletions