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

Re: [PATCH/RFC] improve no-op push output

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 31, 2012, 06:10 UTC
Message-ID
<vpqtxywswwo.fsf@bauges.imag.fr>
In-Reply-To
<7vr4u1zhcz.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
>> would just print:
>>
>>   Everything up-to-date
>>
>> and now you get:
>>
>>   To /tmp/push-message/parent
>>    = [up to date]      master -> master
> [...]
>
> 	Everything up-to-date (the current branch not pushed)

I like both. They don't really take more screen space (1 more line for Jeff, which is acceptable IMHO), and do add information.

I'd add the number of branches pushed in case it's not one, so it could say one of:

  To /tmp/push-message/parent
   = [up to date]      master -> master
or
  Everything up-to-date (X branches pushed, including the current)
or
  Everything up-to-date (X branches pushed, not including the current)

It would give a clue to a user having created many local branches that his local branches were not pushed, and vice-versa, may help people who did not understand that "push.default=matching" was pushing multiple branches.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Jeff King
Message 3 of 6 in “improve no-op push output”
  1. improve no-op push outputJeff King, May 30, 2012
  2. Junio C HamanoMay 30, 2012
  3. Matthieu MoyMay 31, 2012
  4. Jeff KingJun 4, 2012
  5. Junio C HamanoJun 4, 2012
  6. Jeff KingJun 5, 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.