mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
show-branch: drop unused parameter from show_independent()
This ref_name parameter was never used since the inception of
show_independent() in 1f8af483df
(show-branch: --list and --independent,
2005-09-09). Let's drop it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d92349dd55
commit
d713e88c40
1 changed files with 1 additions and 2 deletions
|
@ -514,7 +514,6 @@ static int show_merge_base(struct commit_list *seen, int num_rev)
|
|||
|
||||
static int show_independent(struct commit **rev,
|
||||
int num_rev,
|
||||
char **ref_name,
|
||||
unsigned int *rev_mask)
|
||||
{
|
||||
int i;
|
||||
|
@ -862,7 +861,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
|
|||
return show_merge_base(seen, num_rev);
|
||||
|
||||
if (independent)
|
||||
return show_independent(rev, num_rev, ref_name, rev_mask);
|
||||
return show_independent(rev, num_rev, rev_mask);
|
||||
|
||||
/* Show list; --more=-1 means list-only */
|
||||
if (1 < num_rev || extra < 0) {
|
||||
|
|
Loading…
Reference in a new issue