diff options
author | Junio C Hamano <junkio@cox.net> | 2006-11-02 08:02:11 (GMT) |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-04 20:18:12 (GMT) |
commit | 2f3f8b218abae6fc0574d0e22d3614fc0f5e983d (patch) | |
tree | 6a0361bf80af3aca302bbf5473b723745d4ba5d5 /builtin-pickaxe.c | |
parent | 20239bae943733d766e6475cf0916966c868246b (diff) | |
download | git-2f3f8b218abae6fc0574d0e22d3614fc0f5e983d.zip git-2f3f8b218abae6fc0574d0e22d3614fc0f5e983d.tar.gz git-2f3f8b218abae6fc0574d0e22d3614fc0f5e983d.tar.bz2 |
git-pickaxe: rename detection optimization
The idea is that we are interested in renaming into only one path, so
we do not care about renames that happen elsewhere.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-pickaxe.c')
-rw-r--r-- | builtin-pickaxe.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-pickaxe.c b/builtin-pickaxe.c index f6e861a..97b3732 100644 --- a/builtin-pickaxe.c +++ b/builtin-pickaxe.c @@ -289,6 +289,7 @@ static struct origin *find_rename(struct scoreboard *sb, diff_opts.recursive = 1; diff_opts.detect_rename = DIFF_DETECT_RENAME; diff_opts.output_format = DIFF_FORMAT_NO_OUTPUT; + diff_opts.single_follow = origin->path; paths[0] = NULL; diff_tree_setup_paths(paths, &diff_opts); if (diff_setup_done(&diff_opts) < 0) |