I love git

Ash Berlin ash_cpan at firemirror.com
Sun Oct 28 01:24:19 BST 2012


On 28 Oct 2012, at 00:18, David Cantrell wrote:

> I needed to do a quick update to Number::Phone 2.0. But master in my git
> repo is currently full of unfinished work.
> 
> I love git, because it was just so damned easy to checkout the
> release-2.0 tag, create a branch off that, patch, release, tag (with
> release-2.0001), and merge the changes back into master.  Doing all of
> that in CVS doesn't bear thinking about, and doing it in svn, while
> possible, would have required at least a little bit of thought, and I'm
> not good at thinking this late in the day.
> 
> Now, my question - can I delete the branch, while still leaving the tag
> in place?

Yes, happily.

Tags and branches are both just symlinks to commits. Its just convention (that is enforced a bit by git) that tags don't change where branches do.

-a


More information about the london.pm mailing list