summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorJeff Hostetler <jeffhost@microsoft.com>2018-01-09 18:50:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-24 21:48:39 (GMT)
commitf39a757dd93488103dde76e992a75edf2d772b62 (patch)
treed27d738996d848c0d0e2bababaf4435040fc34f0 /remote.h
parent3ca1897cc1a23f3ad140d759280b73ad7affe696 (diff)
downloadgit-f39a757dd93488103dde76e992a75edf2d772b62.zip
git-f39a757dd93488103dde76e992a75edf2d772b62.tar.gz
git-f39a757dd93488103dde76e992a75edf2d772b62.tar.bz2
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 'remote.h')
-rw-r--r--remote.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index 0a6e770..6360a9d 100644
--- a/remote.h
+++ b/remote.h
@@ -267,7 +267,8 @@ enum ahead_behind_flags {
/* Reporting of tracking info */
int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs,
const char **upstream_name, enum ahead_behind_flags abf);
-int format_tracking_info(struct branch *branch, struct strbuf *sb);
+int format_tracking_info(struct branch *branch, struct strbuf *sb,
+ enum ahead_behind_flags abf);
struct ref *get_local_heads(void);
/*