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

Re: git-svn: Branching clarifications

From
David Kastrup <dak@gnu.org>
Date
Sep 8, 2007, 07:58 UTC
Message-ID
<85ir6lziyq.fsf@lola.goethe.zz>
In-Reply-To
<20070908074944.GC24166@muzzle>
Eric Wong <normalperson@yhbt.net> writes:
Show 12 quoted lines
> David Kastrup <dak@gnu.org> wrote:
>
>> Please.  git-svn is told how to find the trunk on its command line.
>> Nothing makes sense (short of an _explicit_ wish otherwise for
>> which it might make sense to create a command line option) than to
>> map master to the trunk.
>
> Keep in mind that command-line arguments for trunk, branches and tags
> are _all_ optional to git-svn.
>
> If only trunk or nothing is specified, the current behavior will
> always be correct.

Sure, since Subversion does not distinguish trunk, branches, tags, or even projects from each other: they are just naming conventions in the repository and nothing enforces them. So if you check out a single, named directory, it is natural that this will be master, and tracked.

> There's also a case if only branches and/or tags are specified, with
> no trunk given.  That would need to be handled, somehow...

Just barf unless a --master=thisbranch option is given. If you want to, you can allow multiple --track=remotebranch options as well, giving you a tracking branch for the specified remote branches under their original name.

Something like that.
-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Previous: Eric Wong
Message 5 of 5 in “git-svn: Branching clarifications”
  1. Russ BrownSep 7, 2007
  2. Eric WongSep 8, 2007
  3. David KastrupSep 8, 2007
  4. Eric WongSep 8, 2007
  5. David KastrupSep 8, 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.