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

Re: [PATCH 2/3] push: add --current

From
Ddemerphq <demerphq@gmail.com>
Date
Jul 20, 2009, 11:17 UTC
Message-ID
<9b18b3110907200417t2e916d9bqffdb168329d88bc4@mail.gmail.com>
In-Reply-To
<1248071820-18289-3-git-send-email-bonzini@gnu.org>

2009/7/20 Paolo Bonzini <bonzini@gnu.org>: [snip]

> A secondary effect of --head is that, if there is no push.default
> specified, I make the default push refspec "HEAD".
I think you mean something like:
  A secondary effect of --current is that if there is no push.default
  configuration setting specified the default push refspec will be "HEAD".

The important point being you talk about --current but then mention --head which I am guessing was a previous name for this option.

BTW, I like this option and I can imagine it will be a popular alias. One of the more common questions I get asked from people about git is what to do about all the "error" messages when pushing. I usually explain that unless the error message concerns the current branch which you wanted to push that they can be ignored. I look forward to pointing out this option instead. Thanks. :-)

Cheers, yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Paolo BonziniNext: Paolo Bonzini
Message 8 of 9 in “add push --current and remote.*.pushHeadOnly”
  1. 0/3 add push --current and remote.*.pushHeadOnlyPaolo Bonzini, Jul 20, 2009
  2. 1/3 reintroduce PUSH_DEFAULT_UNSPECIFIEDPaolo Bonzini, Jul 20, 2009
  3. 2/3 push: add --currentPaolo Bonzini, Jul 20, 2009
  4. Björn SteinbrinkJul 20, 2009
  5. Paolo BonziniJul 20, 2009
  6. Tay Ray ChuanJul 20, 2009
  7. Paolo BonziniJul 20, 2009
  8. demerphqJul 20, 2009
  9. 3/3 push: add remote.*.pushHeadOnly configurationPaolo Bonzini, Jul 20, 2009

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.