tags 583682 + upstream
quit

Hi,

Frédéric Brière wrote:

> A few months ago, I needed to rewrite a repo by moving it to a
> subdirectory; I ended up (crudely) patching git-filter-branch to add a
> --prefix option, doing the opposite of --subdirectory-filter.  I think
> this could be useful to other people as well.

How does this compare to the example from the man page?

        git filter-branch --index-filter \
                'git ls-files -s | sed "s-\t\"*-&newsubdir/-" |
                        GIT_INDEX_FILE=$GIT_INDEX_FILE.new \
                                git update-index --index-info &&
                 mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE' HEAD

> I'm attaging the diff for archeological purposes, in case this could be
> of help to someone.

Thanks :)
Jonathan



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to