Re: [PATCH v3 2/5] status: add --[no-]ahead-behind to status and commit for V2 format.

2018-01-05 Thread Jeff Hostetler
On 1/4/2018 5:05 PM, Junio C Hamano wrote: Jeff Hostetler writes: + sti = stat_tracking_info(branch, _ahead, _behind, +, s->ahead_behind_flags); if (base) { base =

Re: [PATCH v3 2/5] status: add --[no-]ahead-behind to status and commit for V2 format.

2018-01-04 Thread Junio C Hamano
Jeff Hostetler writes: > + sti = stat_tracking_info(branch, _ahead, _behind, > + , s->ahead_behind_flags); > if (base) { > base = shorten_unambiguous_ref(base, 0); >

[PATCH v3 2/5] status: add --[no-]ahead-behind to status and commit for V2 format.

2018-01-03 Thread Jeff Hostetler
From: Jeff Hostetler Teach "git status" and "git commit" to accept "--no-ahead-behind" and "--ahead-behind" arguments to request quick or full ahead/behind reporting. When "--no-ahead-behind" is given, the existing porcelain V2 line "branch.ab x y" is replaced with a new