|
|
|
@ -407,8 +407,7 @@ static struct origin *find_origin(struct scoreboard *sb,
@@ -407,8 +407,7 @@ static struct origin *find_origin(struct scoreboard *sb,
|
|
|
|
|
paths[1] = NULL; |
|
|
|
|
|
|
|
|
|
diff_tree_setup_paths(paths, &diff_opts); |
|
|
|
|
if (diff_setup_done(&diff_opts) < 0) |
|
|
|
|
die("diff-setup"); |
|
|
|
|
diff_setup_done(&diff_opts); |
|
|
|
|
|
|
|
|
|
if (is_null_sha1(origin->commit->object.sha1)) |
|
|
|
|
do_diff_cache(parent->tree->object.sha1, &diff_opts); |
|
|
|
@ -494,8 +493,7 @@ static struct origin *find_rename(struct scoreboard *sb,
@@ -494,8 +493,7 @@ static struct origin *find_rename(struct scoreboard *sb,
|
|
|
|
|
diff_opts.single_follow = origin->path; |
|
|
|
|
paths[0] = NULL; |
|
|
|
|
diff_tree_setup_paths(paths, &diff_opts); |
|
|
|
|
if (diff_setup_done(&diff_opts) < 0) |
|
|
|
|
die("diff-setup"); |
|
|
|
|
diff_setup_done(&diff_opts); |
|
|
|
|
|
|
|
|
|
if (is_null_sha1(origin->commit->object.sha1)) |
|
|
|
|
do_diff_cache(parent->tree->object.sha1, &diff_opts); |
|
|
|
@ -1075,8 +1073,7 @@ static int find_copy_in_parent(struct scoreboard *sb,
@@ -1075,8 +1073,7 @@ static int find_copy_in_parent(struct scoreboard *sb,
|
|
|
|
|
|
|
|
|
|
paths[0] = NULL; |
|
|
|
|
diff_tree_setup_paths(paths, &diff_opts); |
|
|
|
|
if (diff_setup_done(&diff_opts) < 0) |
|
|
|
|
die("diff-setup"); |
|
|
|
|
diff_setup_done(&diff_opts); |
|
|
|
|
|
|
|
|
|
/* Try "find copies harder" on new path if requested; |
|
|
|
|
* we do not want to use diffcore_rename() actually to |
|
|
|
|