From: Junio C Hamano Date: Mon, 14 Jun 2010 03:13:04 GMT Subject: Re: [PATCH v2 2/2] bash completion: Support "divergence from upstream" warnings in __git_ps1 Message-ID: <7v7hm2e27z.fsf@alter.siamese.dyndns.org> In-Reply-To: <93842467ca22405712cab23a9b3920c106df0f17.1276336602.git.trast@student.ethz.ch> Thomas Rast writes: > +# If you would like to see the difference between HEAD and its upstream, > +# set GIT_PS1_SHOWUPSTREAM to one of the following: > +# git use @{upstream} > +# svn attempt to DWIM svn upstream for normal and --stdlayout > +# ref unconditionally use > +# eval evaluate which should print the commit to use This looks somewhat overengineered, although "git" and "svn" are probably useful in real life. I especially wonder if a fixed is useful at all. Wouldn't the choice of "other" branch always depend on the current branch?