Re: [PATCH v2 2/2] bash completion: Support "divergence from upstream" warnings in __git_ps1
Hi,
On Sat, Jun 12, 2010 at 11:59:11AM +0200, Thomas Rast wrote:
Show 15 quoted lines
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index 57245a8..a6cb435 100755
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -42,6 +42,17 @@
> # set GIT_PS1_SHOWUNTRACKEDFILES to a nonempty value. If there're
> # untracked files, then a '%' will be shown next to the branch name.
> #
> +# 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 use
> +# Any other value DWIMs either svn or git, preferring svn if configured.Something like this should go in there somewhere:
The bash.showUpstream config variable can be used to override the
value of GIT_PS1_SHOWUPSTREAM on a per-repository basis.
Show 7 quoted lines
> +#
> +# The difference will be shown as, e.g., "u+7-5" meaning that you are 7
> +# commits ahead of and 5 commits behind the upstream.
> +#
> # To submit patches:
> #
> # *) Read Documentation/SubmittingPatches