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

Re: Another question about importing SVN with fast-import

From
JHJan Hudec <bulb@ucw.cz>
Date
Jul 23, 2007, 18:06 UTC
Message-ID
<20070723180636.GA20174@efreet.light.src>
In-Reply-To
<20070720051142.GO32566@spearce.org>
On Fri, Jul 20, 2007 at 01:11:42 -0400, Shawn O. Pearce wrote:
Show 9 quoted lines
> It is possible.  I'm just not sure what the syntax for it should be.
> Suggestions?  I really want to stay backwards compatible with the
> current "C" command, so:
> 
> 	'C' SP commit SP path SP path
> 
> is out because its ambiguous with the current meaning where the
> second (destination) path can contain SP without being quoted by
> the frontend.
I'd suggest one of two variants:
 1) 'M' SP <mode> SP <dataref> SP <path> LF
    where <dataref> would be extended to understand the
    {tag-id|commit-id|tree-id}:path notation git-ref-parse understands plus
    mark:path where mark points to commit.
 2) 'C' SP <dataref> SP <path> LF
    where again <dataref> can be {tag-id|commit-id|tree-id|mark}:path -- or
    just path which implies current head.
-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: David Frech
Message 11 of 11 in “Another question about importing SVN with fast-import”
  1. Julian PhillipsJul 16, 2007
  2. Shawn O. PearceJul 17, 2007
  3. Julian PhillipsAug 6, 2007
  4. Shawn O. PearceAug 7, 2007
  5. David FrechJul 19, 2007
  6. Shawn O. PearceJul 20, 2007
  7. Julian PhillipsJul 20, 2007
  8. David FrechJul 20, 2007
  9. Julian PhillipsJul 20, 2007
  10. David FrechJul 20, 2007
  11. Jan HudecJul 23, 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.