Generalize git-move-tags.py to work with branches, too.
Patch by: Steve Folly <spfolly@googlemail.com>
(With minor formatting changes by me.)
I took the git-move-tags.py script and modified it to do the same
thing for branches (heads).
I have many branches in my CVS repository, and because I'm now
splitting it up into multiple git repositories, sometimes there are
branches with no commits on them. I realised I could take the
git-move-tags.py script and apply the same principles to heads. I
know moving heads isn't so important as moving tags, since you'll
naturally get a branch in tree on it's first commit anyway, but
nevertheless it makes the commit tree more aesthetically pleasing to
look at :-)
The new script combines moving tags and head references. Give the
options --tags and/or --heads depending on which refs you want to
move.
git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5094 be7e6eca-30d4-0310-a8e5-ac0d63af7087