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
3
remote.h
3
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);
|
||||
/*
|
||||
|
Reference in New Issue
Block a user