How are ignore paths evaluated in git svn?

I have a simple repo structure:

trunk
    code
    othercode
    doc
    misc
branches
    b1
        code
        othercode
        doc
        misc
    b2
tags
    t1
    t2

I'm trying to use git svncloning, but I want to delete docand miscon trunk + all tags and branches. However, the parameter ignore-pathsdoes not work as I expected.

ignore-paths = (doc|misc)

It seems to work, but I'm worried that it would also exclude a path like the trunk/code/proj1/doc/one I want to keep.

ignore-paths = ^(doc|misc)

- doc misc git svn fetch. , , ? , ignore-paths "" git (doc ..) "" , SVN remote (branches/b1/doc ..) - .

+5
1

, SVN. , trunk/tags/branches SVN, :

ignore-paths = ^(trunk|tags/[^/]*|branches/[^/]*)/(doc|misc)/

: :

  • trunk
  • tags/, , ( /)
  • branches/, , ( /)

... doc misc.

+9

All Articles