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

Re: [RFC/PATCH] git svn: Set default --prefix='origin/' if --prefix is not given

From
EWEric Wong <normalperson@yhbt.net>
Date
Oct 1, 2013, 04:07 UTC
Message-ID
<20131001040752.GA882@dcvr.yhbt.net>
In-Reply-To
<1380581194-5269-1-git-send-email-johan@herland.net>
Johan Herland <johan@herland.net> wrote:
> git-svn by default puts its Subversion-tracking refs directly in
> refs/remotes/*. This runs counter to Git's convention of using
> refs/remotes/$remote/* for storing remote-tracking branches.
Show 9 quoted lines
> Furthermore, combining git-svn with regular git remotes run the risk of
> clobbering refs under refs/remotes (e.g. if you have a git remote
> called "tags" with a "v1" branch, it will overlap with the git-svn's
> tracking branch for the "v1" tag from Subversion.
> 
> Even though the git-svn refs stored in refs/remotes/* are not "proper"
> remote-tracking branches (since they are not covered by a proper git
> remote's refspec), they clearly represent a similar concept, and would
> benefit from following the same convention.

I regretted my original naming shortly after introducing it (IIRC, git-svn was the first refs/remotes/* user). However, this risks breaking existing code and 3rd-party docs/tutorials.

How about we put a big warning of impending change in there for now and wait until git 1.9/2.0 to make the actual change?

Thanks for bringing this up again!
Previous: Johan HerlandNext: Johan Herland
Message 4 of 23 in “git-svn: Use prefix by default?”
  1. Thomas Ferris NicolaisenAug 22, 2013
  2. Johan HerlandSep 30, 2013
  3. git svn: Set default --prefix='origin/' if --prefix is not givenJohan Herland, Sep 30, 2013
  4. Eric WongOct 1, 2013
  5. Johan HerlandOct 1, 2013
  6. Eric WongOct 3, 2013
  7. 1/3 Documentation/git-svn: Promote the use of --prefix in docs + examplesJohan Herland, Oct 5, 2013
  8. 2/3 git-svn: Warn about changing default for --prefix in Git v2.0Johan Herland, Oct 5, 2013
  9. Eric SunshineOct 9, 2013
  10. Johan HerlandOct 9, 2013
  11. 3/3 Git 2.0: git svn: Set default --prefix='origin/' if --prefix is not givenJohan Herland, Oct 5, 2013
  12. Philip OakleyOct 6, 2013
  13. Johan HerlandOct 6, 2013
  14. Eric SunshineOct 9, 2013
  15. Johan HerlandOct 9, 2013
  16. 0/3 Change git-svn's default --prefix in Git v2.0Johan Herland, Oct 11, 2013
  17. 1/3 Documentation/git-svn: Promote the use of --prefix in docs + examplesJohan Herland, Oct 11, 2013
  18. 2/3 git-svn: Warn about changing default for --prefix in Git v2.0Johan Herland, Oct 11, 2013
  19. Eric WongOct 12, 2013
  20. 3/3 Git 2.0: git svn: Set default --prefix='origin/' if --prefix is not givenJohan Herland, Oct 11, 2013
  21. Eric WongApr 19, 2014
  22. git-svn.txt: Retain a description og pre-v2.0 default prefixJohan Herland, Apr 19, 2014
  23. Eric WongApr 19, 2014

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.