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

Re: "git pull REMOTE" question

From
Jon Loeliger <jdl@freescale.com>
Date
Aug 22, 2007, 16:44 UTC
Message-ID
<1187801063.15321.4.camel@ld0161-tx32>
In-Reply-To
<7vtzqsjgq2.fsf@gitster.siamese.dyndns.org>
On Wed, 2007-08-22 at 00:11, Junio C Hamano wrote:
Show 20 quoted lines
> So, how about extending the syntax for [branch $current_branch]
> section of the config like this?
> 
>  ;; traditional -- when on "master", use '[remote "origin"] url'
>  ;; and '[remote "origin"] fetch' to decide where to fetch from,
>  ;; and merge their refs/heads/master to our branch.
>  [branch "master"]
>  	remote = origin
>         merge = refs/heads/master
> 
>  ;; new -- when on "master', and the user says to pull from "usb"
>  ;; without saying which branch to merge, use '[remote "usb"] url'
>  ;; and '[remote "usb"] fetch' to decide where to fetch from,
>  ;; and merge their refs/heads/xprm to our branch.
>  [branch "master:usb"]
>  	merge = refs/heads/xprm
> 
> The trick in the new syntax is that you cannot have a colon in
> refname, so there is no way for existing [branch $name] section
> to crash with the new style definition.

Wasn't there was a brief alternate notion to add a "for <remote>" clause and allowing something like this?:

    [branch "master"]
        merge = refs/heads/xprm for usb
        merge = refs/heads/stuff for otherremote

Thanks, jdl

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “"git pull REMOTE" question”
  1. Miles BaderAug 22, 2007
  2. Junio C HamanoAug 22, 2007
  3. Miles BaderAug 22, 2007
  4. Junio C HamanoAug 22, 2007
  5. Jon LoeligerAug 22, 2007
  6. Junio C HamanoAug 22, 2007

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.