stat_tracking_info: return +1 when branches not equal
authorJeff Hostetler <jeffhost@microsoft.com>
Tue, 9 Jan 2018 18:50:15 +0000 (18:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jan 2018 21:48:38 +0000 (13:48 -0800)
Extend stat_tracking_info() to return +1 when branches are not equal and to
take a new "enum ahead_behind_flags" argument to allow skipping the (possibly
expensive) ahead/behind computation.

This will be used in the next commit to allow "git status" to avoid full
ahead/behind calculations for performance reasons.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found