Skip site navigation (1) Skip section navigation (2)

Re: Caution when removing git branches

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Caution when removing git branches
Date: 2011-01-26 17:07:08
Message-ID: 201101261707.p0QH78b23822@momjian.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Robert Haas wrote:
> On Wed, Jan 26, 2011 at 11:49 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > Robert Haas wrote:
> >> On Wed, Jan 26, 2011 at 11:26 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> >> > For those of you using git, I wanted to point out that it is fairly easy
> >> > to remove git branches. ?For example, I can easily remove a branch on
> >> > my github repository using:
> >> >
> >> > ? ? ? ?$ git branch -d :branch_name
> >> >
> >> > I don't believe that is revertable. ?What is scarey is that this could
> >> > be done on our 'origin' as well.
> >>
> >> The colon in that syntax is flat wrong. ?But branch deletes won't
> >
> > Sorry, I was wrong. ?The syntax is:
> >
> > ? ? ? ?pggit push github :branch_name
> >
> > which is even easier to mistype.
> 
> Yeah, true.  It's good to avoid inserting a spurious colon there.
> Fortunately, that only removes it from the *remote* side, so in the
> event that you want to put it back, you can just rerun the command
> without the colon.

I would love to know who thought that magic colon was a good idea?  Is
its use even logical there?

-- 
  Bruce Momjian  <bruce(at)momjian(dot)us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

In response to

Responses

pgsql-hackers by date

Next:From: Kevin GrittnerDate: 2011-01-26 17:07:18
Subject: Re: SSI patch version 14
Previous:From: Robert HaasDate: 2011-01-26 17:02:36
Subject: Re: Caution when removing git branches

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group