Re: [PATCH v2 2/2] bash completion: Support "divergence from upstream" warnings in __git_ps1
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 14, 2010, 03:13 UTC
- Message-ID
- <7v7hm2e27z.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <93842467ca22405712cab23a9b3920c106df0f17.1276336602.git.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 6 quoted lines
> +# 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 <ref> unconditionally use <ref>
> +# eval <code> evaluate <code> which should print the commit to useThis looks somewhat overengineered, although "git" and "svn" are probably useful in real life. I especially wonder if a fixed <ref> is useful at all. Wouldn't the choice of "other" branch always depend on the current branch?