Generalize git-move-tags.py to work with branches, too.
commitf6e83ab9f00e0c9614091552baa98f83a3afb051
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 3 Apr 2010 19:42:38 +0000 (3 19:42 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Sat, 3 Apr 2010 19:42:38 +0000 (3 19:42 +0000)
treee0c773acade7f516e9b9dc21509e0011f6e241f6
parent6545db5edc4b25eddd1f7e7776ffe9bd70c98676
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
contrib/git-move-refs.py [new file with mode: 0644]