status: support --no-ahead-behind in long format
Teach long (normal) status format to respect the --no-ahead-behind parameter and skip the possibly expensive ahead/behind computation between the branch and the upstream. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
3ca1897cc1
commit
f39a757dd9
@ -1011,7 +1011,7 @@ static void wt_longstatus_print_tracking(struct wt_status *s)
|
||||
if (!skip_prefix(s->branch, "refs/heads/", &branch_name))
|
||||
return;
|
||||
branch = branch_get(branch_name);
|
||||
if (!format_tracking_info(branch, &sb))
|
||||
if (!format_tracking_info(branch, &sb, s->ahead_behind_flags))
|
||||
return;
|
||||
|
||||
i = 0;
|
||||
|
||||
Reference in New Issue
Block a user