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

Re: [PATCH 1/3] branch: introduce --set-upstream-to

From
Ralf Thielow <ralf.thielow@gmail.com>
Date
Aug 31, 2012, 15:30 UTC
Message-ID
<CAN0XMOK1_JqMuAkW-XzGfkn8pkTUqt879-+E0cGBn79GzEXWkQ@mail.gmail.com>
In-Reply-To
<87mx1b3x3m.fsf@centaur.cmartin.tk>
On Fri, Aug 31, 2012 at 5:22 PM, Carlos Martín Nieto <cmn@elego.de> wrote:
Show 15 quoted lines
> Ralf Thielow <ralf.thielow@gmail.com> writes:
>
>> On Thu, Aug 30, 2012 at 7:23 PM, Carlos Martín Nieto <cmn@elego.de> wrote:
>>> behaviour. To work around this, introduce --set-upstream-to which
>>> accepts a compulsory argument indicating what the new upstream branch
>>> should be and one optinal argument indicating which branch to change,
>>> defaulting to HEAD.
>>>
>>
>> Could you please also add this new option to the
>> "contrib/completion/git-completion.bash"
>> script?
>
> If I knew how those things work... Is this enough?
>
Yes, Thanks.
Show 23 quoted lines
>    cmn
>
> --8<--
> Subject: [PATCH] completion: add --set-upstream-to and --unset-upstream
>
> ---
>  contrib/completion/git-completion.bash | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
> index ffedce7..4f46357 100644
> --- a/contrib/completion/git-completion.bash
> +++ b/contrib/completion/git-completion.bash
> @@ -880,6 +880,7 @@ _git_branch ()
>                         --color --no-color --verbose --abbrev= --no-abbrev
>                         --track --no-track --contains --merged --no-merged
>                         --set-upstream --edit-description --list
> +                       --unset-upstream --set-upstream-to=
>                         "
>                 ;;
>         *)
> --
> 1.7.12.3.g0dd8ef6
Previous: Carlos Martín NietoNext: Junio C Hamano
Message 5 of 12 in “[PATCHv2 0/3] Improve branch UI for setting upstream information”
  1. Carlos Martín NietoAug 30, 2012
  2. 1/3 branch: introduce --set-upstream-toCarlos Martín Nieto, Aug 30, 2012
  3. Ralf ThielowAug 30, 2012
  4. Carlos Martín NietoAug 31, 2012
  5. Ralf ThielowAug 31, 2012
  6. Junio C HamanoAug 31, 2012
  7. Carlos Martín NietoSep 1, 2012
  8. 2/3 branch: add --unset-upstream optionCarlos Martín Nieto, Aug 30, 2012
  9. 3/3 branch: deprecate --set-upstream and show help if we detect possible mistaken useCarlos Martín Nieto, Aug 30, 2012
  10. Junio C HamanoAug 30, 2012
  11. Carlos Martín NietoAug 30, 2012
  12. Junio C HamanoAug 30, 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.