Re: Support for an interactive confirmation prompt when users can possibly lose their work like some UNIX commands
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Aug 28, 2019, 15:27 UTC
- Message-ID
- <CACsJy8CnaYqKSs7oCpCVSiVeferb9KJS6Fvu791BH8nBYKt6Jg@mail.gmail.com>
- In-Reply-To
- <20190828150530.GD14432@sigill.intra.peff.net>
On Wed, Aug 28, 2019 at 10:05 PM Jeff King <peff@peff.net> wrote:
Show 8 quoted lines
> > > Note that there _are_ some commands which are not reversible: mostly > > > things that drop content from the working tree. So "git reset --hard" is > > > one, and "git clean" is another. There have been discussions and even > > > some patches about storing the lost in an "undo log", but nothing has > > > been merged. > > > > > Seems like a good idea. Are they ever gonna merge? If no, why? Or, it > > will merge in next feature release.
If people are interested in the backup-log thing below, they can reuse/refine the work or the idea from that, but I'm not going to push it (or anything else) for merging.
> I don't know the latest state. A quick search of the archive showed this > as the latest version: > > https://public-inbox.org/git/20181209104419.12639-1-pclouds@gmail.com/
-- Duy