Skip to content

Commit d713e88

Browse files
peffgitster
authored andcommitted
show-branch: drop unused parameter from show_independent()
This ref_name parameter was never used since the inception of show_independent() in 1f8af48 (show-branch: --list and --independent, 2005-09-09). Let's drop it. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d92349d commit d713e88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/show-branch.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ static int show_merge_base(struct commit_list *seen, int num_rev)
514514

515515
static int show_independent(struct commit **rev,
516516
int num_rev,
517-
char **ref_name,
518517
unsigned int *rev_mask)
519518
{
520519
int i;
@@ -862,7 +861,7 @@ int cmd_show_branch(int ac, const char **av, const char *prefix)
862861
return show_merge_base(seen, num_rev);
863862

864863
if (independent)
865-
return show_independent(rev, num_rev, ref_name, rev_mask);
864+
return show_independent(rev, num_rev, rev_mask);
866865

867866
/* Show list; --more=-1 means list-only */
868867
if (1 < num_rev || extra < 0) {

0 commit comments

Comments
 (0)