I'm working on a Git repo that's been pulled from an SVN repo using git svn
. Many moons ago, the SVN repo was created from a source tarball of the original (upstream) project. The original project had a file structure like the following:
/
COPYING
README
src/
...many source files...
However, when the SVN repo was created, the README files, etc., were stripped out, and the app was created with src/
as the root, so the repo now just looks like:
/
...many source files
I recently converted this SVN repo into a Git repo. The original project is also in a Git repo, and I'd like to start tracking upstream changes so I can easily see what custom changes have been made (and submit patches back to the original project, if applicable). I've found the commit in the upstream repo that our SVN repo was created from, so now I'd like to apply our changes to that commit (in a branch). I can easily create a set of patches using git format-patch
and apply them to the cloned upstream repo...except that the file structures are different, so the patches don't point to the correct files anymore. Is there a way to apply the patches from git format-patch
to the src/
directory in the cloned repo? (Note that the Git patches also have the necessary info like the original author name, email, and date, which I'd also like to apply and not have to do by hand, i.e., by messing around with GIT_AUTHOR_EMAIL
, etc.)