From: Junio C Hamano Date: Mon, 12 Jul 2010 23:50:32 GMT Subject: Re: Question about 'branch -d' safety Message-ID: <7v39vo8dkn.fsf@alter.siamese.dyndns.org> In-Reply-To: <20100712184754.GA18429@localhost> Clemens Buchacher writes: >> What problem are you guys really trying to solve? > > The reflog protects you from almost all involuntary loss of > information. And you call "git branch -[dD]" involuntary? I am not entirely unsympathetic to add "git branch --undelete frotz" to our vocabulary, but then we should leave users an easy way to really remove things, and it shouldn't be "git branch -d --i-really-mean-it frotz". It would probably be more like "git branch -d frotz" followed by "git branch --purge frotz" or "git branch --purge \*" (if we name the operation to remove cruft for undelete "purge", that is).