diff options
author | Philippe Blain <levraiphilippeblain@gmail.com> | 2020-11-01 17:28:46 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-01 15:54:15 -0800 |
commit | 88894aaeeae92e8cb41143cc2e045f50289dc790 (patch) | |
tree | f6e12affe80d6a6746825b07e4ede6ce2d41b6da /blame.h | |
parent | 9466e3809d2b5f9605918c56d63f21b17e98e230 (diff) |
blame: simplify 'setup_scoreboard' interface
The previous commit moved the initialization of 'sb.path' in 'builtin/blame.c::cmd_blame' before the call to 'blame.c::setup_scoreboard'. Since 'cmd_blame' is the only caller of 'setup_scoreboard', it is now unnecessary for 'setup_scoreboard' to receive 'path' as a separate argument, as 'sb.path' is already initialized. Remove this argument from setup_scoreboard's interface and use the 'path' field of the 'sb' 'struct blame_scoreboard' instead. Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'blame.h')
-rw-r--r-- | blame.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/blame.h b/blame.h index b6bbee4147..e8c185c8ef 100644 --- a/blame.h +++ b/blame.h @@ -181,7 +181,6 @@ const char *blame_nth_line(struct blame_scoreboard *sb, long lno); void init_scoreboard(struct blame_scoreboard *sb); void setup_scoreboard(struct blame_scoreboard *sb, - const char *path, struct blame_origin **orig); void setup_blame_bloom_data(struct blame_scoreboard *sb, const char *path); |