Re: [PATCH v6 2/3] branch: report invalid tracking branch as broken

2013-08-15 Thread Junio C Hamano
Jiang Xin writes: > /* > - * Return false if cannot stat a tracking branch (not exist or invalid), > - * otherwise true. > + * Compare a branch with its tracking branch, and save their differences > + * (number of commits) in *num_ours and *num_theirs. > + * > + * Return 0 if branch has no upstr

Re: [PATCH v6 2/3] branch: report invalid tracking branch as broken

2013-08-15 Thread Junio C Hamano
Jiang Xin writes: > If a branch has been set to track a upstream, but the upstream branch > is missing or invalid, the tracking info is silently ignored in the > output of some commands such as "git branch -vv" and "git status", > as if there were no such tracking settings. > > Junio suggested br

[PATCH v6 2/3] branch: report invalid tracking branch as broken

2013-08-15 Thread Jiang Xin
If a branch has been set to track a upstream, but the upstream branch is missing or invalid, the tracking info is silently ignored in the output of some commands such as "git branch -vv" and "git status", as if there were no such tracking settings. Junio suggested broken upstream should be reporte