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

Re: [PATCH] fetch: add new fetch.default configuration

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 19, 2013, 12:37 UTC
Message-ID
<CAMP44s0p067aR4XKqrNimdsp2GrYa42mdnarTZoSGFuNdgy1dA@mail.gmail.com>
In-Reply-To
<CALkWK0=poS43aGYuMzEP9K7e0P0khFRnzQxihtgAvh3rtb9Mdw@mail.gmail.com>

On Sun, May 19, 2013 at 7:26 AM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:

Show 7 quoted lines
> My itch is very simple.
>
> Felipe Contreras wrote:
>> % git checkout fc/remote/hg-next
>> % git rebase -i # rebase to master
>
> % git pull # I want: pull from origin
Then do 'git pull origin', 'fc/remote/hg-next' has *nothing* to do with origin.
>> % git checkout fc/remote/hg-notes
>> % git rebase -i # rebase to fc/remote/hg-next
>
> % git pull # I want: pull from ram
Ditto.
>> % git checkout fc/remote/hg-gitifyhg-compat
>> % git rebase -i # rebase to fc/remote/hg-notes
>
> % git pull # I want: pull from felipe
Ditto.
> With your series, rebase works and I like that.  But, by specifying
> branch.<name>.remote as '.',
I'm not doing that *GIT* is doing that.

What does this throw? % git checkout --track -b foo master % git config branch.foo.remote

> I've essentially lost a way to specify a
> remote I want.  Why can't I have both?

You haven't lost anything. The upstream is 'branch.x.remote'+'branch.x.merge', and it remains so before and after this patch. You can set 'branch.x.remote' to whatever you want.

-- 
Felipe Contreras
Previous: Ramkumar RamachandraNext: Eric Sunshine
Message 7 of 9 in “fetch: add new fetch.default configuration”
  1. fetch: add new fetch.default configurationFelipe Contreras, May 18, 2013
  2. Ramkumar RamachandraMay 18, 2013
  3. Felipe ContrerasMay 18, 2013
  4. Ramkumar RamachandraMay 19, 2013
  5. Felipe ContrerasMay 19, 2013
  6. Ramkumar RamachandraMay 19, 2013
  7. Felipe ContrerasMay 19, 2013
  8. Eric SunshineMay 19, 2013
  9. Felipe ContrerasJun 1, 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.