From: Junio C Hamano Date: Thu, 15 Aug 2013 22:56:37 GMT Subject: Re: [PATCH v6 3/3] status: always show tracking branch even no change Message-ID: <7vvc36o95m.fsf@alter.siamese.dyndns.org> In-Reply-To: <224af6e4fce9004aa50ea0c11c703107857c46f0.1376590264.git.worldhello.net@gmail.com> Jiang Xin writes: > In order to see what the current branch is tracking, one way is using > "git branch -v -v", but branches other than the current are also > reported. Another way is using "git status", such as: > > $ git status > # On branch master > # Your branch is ahead of 'origin/master' by 1 commit. > ... > > But this will not work if there is no change between the current > branch and its upstream. What if report upstream tracking info > always even if there is no difference. E.g. > > $ git status > # On branch feature1 > # Your branch is identical to 'github/feature1'. > ... > > $ git status -bs > ## feature1...github/feature1 > ... > > $ git checkout feature1 > Already on 'feature1' > Your branch is identical to 'github/feature1'. > ... The sentence that began with "What if ..." never completed?