git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] Fix git-completion.bash for use in zsh

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 7, 2012, 13:09 UTC
Message-ID
<CAMP44s1H74_2pewqLrkz9cmiguxH1=Ayz-5fn5_HgUCqbbB9rw@mail.gmail.com>
In-Reply-To
<1332327960-5208-1-git-send-email-dev@randomguy3.me.uk>
On Wed, Mar 21, 2012 at 1:06 PM, Alex Merry <dev@randomguy3.me.uk> wrote:
Show 11 quoted lines
>  __git_ps1_show_upstream ()
>  {
>        local key value
> -       local svn_remote=() svn_url_pattern count n
> +       local svn_remote svn_url_pattern count n
>        local upstream=git legacy="" verbose=""
> +       svn_remote=()
>
>        # get some config options from git-config
>        local output="$(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')"
> --
Actually, a more proper way to do this is 'local -a svn_remote'.
Cheers.
-- 
Felipe Contreras
Previous: Felipe Contreras
Message 4 of 4 in “Fix git-completion.bash for use in zsh”
  1. Fix git-completion.bash for use in zshAlex Merry, Mar 21, 2012
  2. Junio C HamanoMar 21, 2012
  3. Felipe ContrerasMar 25, 2012
  4. Felipe ContrerasApr 7, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.