Hi Alex,
I found that format-patch can be given a path, so that it only produces patch
for it. Here is how I have prepared a new cufflinks repository:
debcheckout -a git://git.debian.org/debian-med/cufflinks.git --git-track='*'
cd cufflinks/
git format-patch 0b7256275dc8b8f7495a46b6b33739573fd0d1c0 debian/
# 0b7256275dc8b8f7495a46b6b33739573fd0d1c0 is my last commit in this repository
mv 00* ..
git reset --hard 0b7256275dc8b8f7495a46b6b33739573fd0d1c0
git am --committer-date-is-author-date ../0001-new-debian-dir-for-cufflinks.patch
git am --committer-date-is-author-date ../0002-added-headers-for-patches-according-http-dep.debian..patch
uscan --force-download
git import-orig --pristine-tar ../cufflinks_1.0.2.orig.tar.gz
git am --committer-date-is-author-date ../0003-Imported-upstream-version-1.0.2.patch
git am --committer-date-is-author-date ../0004-added-ITP-number-for-the-initial-release.patch
# patches 5,6,7 were redundant…
git am --committer-date-is-author-date ../0008-added-docs.patch
git am --committer-date-is-author-date ../0009-added-missing-dependency.patch
git am --committer-date-is-author-date ../0010-libbam-dev-provides-necessary-headers-only-from-0.1..patch
git diff origin/master
# Contents of the new master branch were identical to origin/master
# Then I went in Alioth, and created a new empty cufflinks repository with setup-repository
# I temporarly disabled its commit hook, to not spam with the following:
git push --all ; git push --tags
If you like the new repository, I will delete the old one. The dates are not
completely consistent, but overall things look better and simpler than before.
I hope that I have not horrified others more used to Subversion. The
repository as it was before the correction was completely functional, and the
issue that I have fixed is borderline cosmetic :)
Have a nice day,