blame: drop unused parameter from maybe_changed_path
We don't use the "parent" parameter at all (probably because the bloom filter for a commit is always defined against a single parent anyway). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
0906ac2b54
commit
fe88f9f91f
4
blame.c
4
blame.c
|
@ -1263,7 +1263,6 @@ struct blame_bloom_data {
|
||||||
static int bloom_count_queries = 0;
|
static int bloom_count_queries = 0;
|
||||||
static int bloom_count_no = 0;
|
static int bloom_count_no = 0;
|
||||||
static int maybe_changed_path(struct repository *r,
|
static int maybe_changed_path(struct repository *r,
|
||||||
struct commit *parent,
|
|
||||||
struct blame_origin *origin,
|
struct blame_origin *origin,
|
||||||
struct blame_bloom_data *bd)
|
struct blame_bloom_data *bd)
|
||||||
{
|
{
|
||||||
|
@ -1355,8 +1354,7 @@ static struct blame_origin *find_origin(struct repository *r,
|
||||||
if (origin->commit->parents &&
|
if (origin->commit->parents &&
|
||||||
!oidcmp(&parent->object.oid,
|
!oidcmp(&parent->object.oid,
|
||||||
&origin->commit->parents->item->object.oid))
|
&origin->commit->parents->item->object.oid))
|
||||||
compute_diff = maybe_changed_path(r, parent,
|
compute_diff = maybe_changed_path(r, origin, bd);
|
||||||
origin, bd);
|
|
||||||
|
|
||||||
if (compute_diff)
|
if (compute_diff)
|
||||||
diff_tree_oid(get_commit_tree_oid(parent),
|
diff_tree_oid(get_commit_tree_oid(parent),
|
||||||
|
|
Loading…
Reference in New Issue