diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2018-01-09 19:50:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-24 22:48:39 +0100 |
commit | f39a757dd93488103dde76e992a75edf2d772b62 (patch) | |
tree | d27d738996d848c0d0e2bababaf4435040fc34f0 /wt-status.c | |
parent | status: update short status to respect --no-ahead-behind (diff) | |
download | git-f39a757dd93488103dde76e992a75edf2d772b62.tar.xz git-f39a757dd93488103dde76e992a75edf2d772b62.zip |
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>
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c index 13189614ae..e4555c7fa7 100644 --- a/wt-status.c +++ b/wt-status.c @@ -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; |