git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -


when using git svn, sparse checkout of central repository may achieved along lines of

git clone -s url-to-root --include-paths 'dir1|dir2|dir3' 

after using setup time, add directory dir4 tracked. directory has existed in many commits have checked out. editing variable svn-remote.svn.include-paths running

git config --edit 

does not have desired effect on git fetch (only files changed in future commits checked out changed; not immediately), , following not check out dir4:

git svn fetch --include-paths dir4 

i think following work ineffective due refetching revisions since first revision @ dir4 appeared first time (let's call rev):

git svn reset -r rev git svn fetch --include-paths dir4 git svn rebase 

what better way of tracking dir4? if not care history of dir4?

is there better way initial sparse checkout git-svn if suspect want change list of tracked directories later? have tried starting listing directoreis not fetched in original commit, not know how unignore them later:

git svn fetch --ignore-paths dir4 

but how tell git stop ignoring dir4 when decide want check out well?


Comments

Popular posts from this blog

How to get the arclen between two curve points in Maya? -

C++ Linked List -