]> git.ipfire.org Git - thirdparty/git.git/commit - blame.c
blame: simplify 'setup_scoreboard' interface
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Sun, 1 Nov 2020 17:28:46 +0000 (17:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 1 Nov 2020 23:54:15 +0000 (15:54 -0800)
commit88894aaeeae92e8cb41143cc2e045f50289dc790
treef6e12affe80d6a6746825b07e4ede6ce2d41b6da
parent9466e3809d2b5f9605918c56d63f21b17e98e230
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>
blame.c
blame.h
builtin/blame.c