Re: Question about 'branch -d' safety
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 12, 2010, 23:50 UTC
- Message-ID
- <7v39vo8dkn.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20100712184754.GA18429@localhost>
Clemens Buchacher <drizzd@aon.at> 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).