diff options
author | Junio C Hamano <junkio@cox.net> | 2006-10-21 03:30:53 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-21 03:30:53 -0700 |
commit | aec8fa1f587d68a0e50ada2720c8dc6e09709a9c (patch) | |
tree | f082c5c9ce73f890fb2588963a24857a8fa922a3 /diff-lib.c | |
parent | git-pickaxe: get rid of wasteful find_origin(). (diff) | |
download | tgif-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 'diff-lib.c')
0 files changed, 0 insertions, 0 deletions