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

Re: Multi-head pulling series

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Aug 22, 2005, 16:35 UTC
Message-ID
<200508221835.31275.Josef.Weidendorfer@gmx.de>
In-Reply-To
<7vfyt4l9q9.fsf@assigned-by-dhcp.cox.net>
On Saturday 20 August 2005 20:54, Junio C Hamano wrote:
Show 12 quoted lines
> Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:
> >> 	$ cat $GIT_DIR/remotes/www
> >> 	URL: http://www.kernel.org/pub/scm/git/git.git/
> >>	Pull: master:ko-master pu:ko-pu
> >>	Push: master:master pu:pu foo:bar
> >
> > Isn't this mixing two kinds of information:
> > 1) Some default/persistent mapping of local to remote heads
> > 2) The default heads which are pulled/pushed when only giving the remote
>
> I am not convinced myself that default/persistent mapping makes
> much sense,

I think that both, default and non-default persistant mappings, are only a handy convenience issue for less typing. If GIT core is not doing this, some (most?) porcelains will invent their own way for storing these mappings (like Cogito is doing with branches/). I think it is better if this is "standardized".

Currently missing here is automatic detection of the remote repository for a given head to be pulled/pushed. But this is no format issue.

> and updating the stored mappings dynamically when 
> the user uses non-default mappings in push/pull as a one-shot
> operation does not make any sense at all at least to me.
Yes, you are right.
Josef
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 9 in “Multi-head pulling series”
  1. Junio C HamanoAug 18, 2005
  2. 1/3 Start adding the $GIT_DIR/remotes/ support.Junio C Hamano, Aug 18, 2005
  3. 2/3 Multi-head fetch.Junio C Hamano, Aug 18, 2005
  4. 3/3 Update git-pull to match updated git-fetch.Junio C Hamano, Aug 18, 2005
  5. Josef WeidendorferAug 18, 2005
  6. Junio C HamanoAug 20, 2005
  7. Josef WeidendorferAug 22, 2005
  8. Junio C HamanoAug 23, 2005
  9. Junio C HamanoAug 23, 2005

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.