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

Re: Random thoughts on "upstream"

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 18, 2013, 22:36 UTC
Message-ID
<CAMP44s29L1Yr0mQjUmUBr7Zm9NouG5_vrQ4cZ=TY2QbLKMB9eA@mail.gmail.com>
In-Reply-To
<CALkWK0=0SwWW+LC3iPy=A9tLBOxrXgYH1cYNazrchv3_jU_oMg@mail.gmail.com>

On Sat, May 18, 2013 at 3:07 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:

Show 25 quoted lines
> Ramkumar Ramachandra wrote:
>> I guess what I'm saying is: refspec semantics are inherent properties
>> of the remote, not of the local branch.
>
> [remote "ram"]
>     push = refs/heads/link:refs/heads/for-junio/link
>
> is saying: if the branch name matches "link", push it to for-junio/link.
>
> [branch "link"]
>     push = refs/heads/for-junio/link
>
> is saying: push _this_ branch to for-junio/link, irrespective of what
> it is called.
>
> An example illustrating this clearly:
>
> # on branch link-v2
> # work ...
> $ git push
> # work ...
> # ok, I'm ready to replace link
> $ git branch -M link
> $ git push
> # where should the push go?
Exactly where you told it to go.
> Also: putting branch-specific configuration in remote.<name>.push
> would mean that it can potentially accumulate a lot of cruft from
> deleted branches.  It's the same kind problem we face with .gitignore,
> no?

Not many people would use 'remote.<name>.push' and in very specific circumstances. It's not a problem.

-- 
Felipe Contreras
Previous: Ramkumar RamachandraNext: Felipe Contreras
Message 14 of 26 in “Random thoughts on "upstream"”
  1. Junio C HamanoMay 16, 2013
  2. Felipe ContrerasMay 16, 2013
  3. Junio C HamanoMay 16, 2013
  4. Felipe ContrerasMay 17, 2013
  5. Junio C HamanoMay 17, 2013
  6. Felipe ContrerasMay 17, 2013
  7. Felipe ContrerasMay 17, 2013
  8. Ramkumar RamachandraMay 17, 2013
  9. Junio C HamanoMay 17, 2013
  10. Ramkumar RamachandraMay 17, 2013
  11. Junio C HamanoMay 17, 2013
  12. Ramkumar RamachandraMay 18, 2013
  13. Ramkumar RamachandraMay 18, 2013
  14. Felipe ContrerasMay 18, 2013
  15. Felipe ContrerasMay 18, 2013
  16. Junio C HamanoMay 19, 2013
  17. Ramkumar RamachandraMay 19, 2013
  18. Felipe ContrerasMay 19, 2013
  19. Ramkumar RamachandraMay 19, 2013
  20. Felipe ContrerasMay 19, 2013
  21. Junio C HamanoMay 20, 2013
  22. Ramkumar RamachandraMay 23, 2013
  23. Felipe ContrerasMay 23, 2013
  24. Junio C HamanoMay 23, 2013
  25. Ramkumar RamachandraMay 23, 2013
  26. Ramkumar RamachandraMay 24, 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.