Re: contribution: git-move-heads.py

Michael Haggerty <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
Steve Folly wrote:
> I hope you find this useful - 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 :-)

Sounds reasonable.

> I wasn't sure to whether to munge them together or not, so here's a
> separate git-move-heads.py to start off with.

There's no need to be shy about suggesting changes to existing code :-)

Given that the two scripts are quite similar, it seems like it would
make sense to combine them.  If you think that people might want to move
tags but not branches or vice versa, then the script could have
command-line options telling it what to do.  What do you think?

Michael

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2447612

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.