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

Re: [PATCH] status: add advice on how to push/pull to tracking branch

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Nov 16, 2012, 09:27 UTC
Message-ID
<vpqy5i1c2zc.fsf@grenoble-inp.fr>
In-Reply-To
<7vmwyi8rjt.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>
>> I don't understand what you mean by "non-current". If you mean a local
>> branch not pointed to by HEAD, then I don't understand the remark, as
>> the message is shown by "git status" (looking more closely, it is also
>> shown by "git checkout", but after switching branch so also showing a
>> message about the current branch) and precisely talks about the current
>> branch.
>
> Ah, Ok, I somehow thought that "branch -v" would also use this
> information, and/or during my absense this function from remote.c
> got linked into "git remote show" ;-)
OK.
> So it is not an issue right now, but we will have to worry about the
> messaging when we start using this to describe a branch that is not
> currently checked out.

(Anyway, we'd have to reword it a bit: saying "Your branch ..." would be wrong in this case)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C Hamano
Message 5 of 5 in “status: add advice on how to push/pull to tracking branch”
  1. status: add advice on how to push/pull to tracking branchMatthieu Moy, Nov 15, 2012
  2. Junio C HamanoNov 15, 2012
  3. Matthieu MoyNov 15, 2012
  4. Junio C HamanoNov 15, 2012
  5. Matthieu MoyNov 16, 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.