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

Re: [RFC/PATCH] push: introduce implicit push

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 16, 2013, 02:13 UTC
Message-ID
<20130416021316.GF3262@elie.Belkin>
In-Reply-To
<20130416020515.GE3262@elie.Belkin>
Jonathan Nieder wrote:
> As you hinted before, this would involve reverting the introduction
> of "branch.<name>.pushremote", with the explanation that it was a
> mistake inspired by that false symmetry, that you noticed and were
> uncomfortable with but the rest of us were blind too.
s/too/to/

For the curious, here is the motivation for the weird syntax I suggested:

	git push foo bar -- baz qux

Sure, I want "git push master" to work since it might reduce the volume of questions on #git. But selfishly, more important to me was that it would simplify my life as I frequently do

	git push repo wagner vasks -- debian-experimental +candidate+patches

in three steps, and I'd rather do it in one. I think of repo.or.cz, wagner.debian.org, and vasks.debian.org as three different remotes and like maintaining separate remote-tracking branches for them, so a single remote/multiple urls setup didn't work as well when I tried it.

I should warn you that the sketch of a design I am replying to is incomplete. It doesn't say what should happen if you try

	git push -- master:theirmaster next:theirnext

Thanks, Jonathan

Previous: Jonathan Nieder
Message 21 of 21 in “push: introduce implicit push”
  1. push: introduce implicit pushRamkumar Ramachandra, Apr 12, 2013
  2. Junio C HamanoApr 12, 2013
  3. Ramkumar RamachandraApr 13, 2013
  4. Junio C HamanoApr 14, 2013
  5. Jakub NarębskiApr 14, 2013
  6. Ramkumar RamachandraApr 14, 2013
  7. Junio C HamanoApr 15, 2013
  8. Johannes SixtApr 15, 2013
  9. Junio C HamanoApr 15, 2013
  10. John KeepingApr 15, 2013
  11. Ramkumar RamachandraApr 15, 2013
  12. John KeepingApr 15, 2013
  13. Junio C HamanoApr 15, 2013
  14. Ramkumar RamachandraApr 15, 2013
  15. John KeepingApr 15, 2013
  16. Felipe ContrerasApr 15, 2013
  17. John KeepingApr 15, 2013
  18. Felipe ContrerasApr 15, 2013
  19. Ramkumar RamachandraApr 15, 2013
  20. Jonathan NiederApr 16, 2013
  21. Jonathan NiederApr 16, 2013

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.