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

Re: [RFC] git pull and importers

From
Junio C Hamano <junkio@cox.net>
Date
Apr 7, 2007, 21:32 UTC
Message-ID
<7vr6qvc1kl.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070407202409.GA5107@muzzle>
Eric Wong <normalperson@yhbt.net> writes:
Show 5 quoted lines
> When git-fetch is called without any remote arguments, it would look for
> [remote "origin"] as it does now.  However, if no [remote "..."]
> sections are found (as is common with importer-created repos), it would
> try other importers: [svn-remote "svn"], (and hopefully one day
> [cvs-remote "cvs"], [arch-remote "arch"], ...).

I wonder why wouldn't the alternative of noticing the URL scheme of '[remote "svn"] url' variable is "svn://". That is...

	[remote "gitrepo"]
        	url = git://example.com/repo.git/
		fetch = refs/heads/*:refs/remotes/gitrepo/*
	[remote "svnrepo"]
        	url = svn://example.com/repo.svn/
                fetch = trunk:refs/remotes/svnrepo/trunk
	[remote "cvsrepo"]
        	url = cvs://example.com/repo.cvs/
                fetch = HEAD:refs/remotes/cvsrepo/

The sections would probably can have importer specific options besides usual url/fetch.

Previous: Eric WongNext: Eric Wong
Message 5 of 7 in “[RFC] git pull and importers”
  1. Daniel BarkalowApr 7, 2007
  2. Junio C HamanoApr 7, 2007
  3. Daniel BarkalowApr 7, 2007
  4. Eric WongApr 7, 2007
  5. Junio C HamanoApr 7, 2007
  6. Eric WongApr 7, 2007
  7. Daniel BarkalowApr 7, 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.