Re: [PATCH v5 1/2] branch: not report invalid tracking branch

2013-08-14 Thread Jiang Xin
2013/8/14 Junio C Hamano > > /* > > - * Return true if there is anything to report, otherwise false. > > + * Return false if cannot stat a tracking branch (not exist or invalid), > > + * otherwise true. > > */ > > int stat_tracking_info(struct branch *branch, int *num_ours, int > > *num_their

Re: [PATCH v5 1/2] branch: not report invalid tracking branch

2013-08-14 Thread Junio C Hamano
Jiang Xin writes: > Command "git branch -vv" will report tracking branches, but invalid > tracking branches are also reported. This is because the function > stat_tracking_info() can not distinguish whether the upstream branch > does not exist, or nothing is changed between one branch and its > u

Re: [PATCH v5 1/2] branch: not report invalid tracking branch

2013-08-14 Thread Junio C Hamano
Jiang Xin writes: > Command "git branch -vv" will report tracking branches, but invalid > tracking branches are also reported. This is because the function > stat_tracking_info() can not distinguish whether the upstream branch > does not exist, or nothing is changed between one branch and its > u

[PATCH v5 1/2] branch: not report invalid tracking branch

2013-08-12 Thread Jiang Xin
Command "git branch -vv" will report tracking branches, but invalid tracking branches are also reported. This is because the function stat_tracking_info() can not distinguish whether the upstream branch does not exist, or nothing is changed between one branch and its upstream. This patch changes t