Re: [PATCH v5 0/3] interactive git clean
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- May 6, 2013, 07:58 UTC
- Message-ID
- <vpqli7s8rqp.fsf@grenoble-inp.fr>
- In-Reply-To
- <CAPig+cR--LQSkxc27_tMRrEnFJFApymqK9268BQA0bab38W3OQ@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> The pattern [y] will match file named 'y'. It probably is unusual for > files named 'y', 'n', etc. to exist in the top-level directory, but > the gitignore patterns already provide an escape hatch for these > unusual cases.
But how does the user know that?
I'd rather stay away from dwim that works in 99% of cases but do something dangerous in the 1% remaining, and complex un-guessable escape scheme to solve these few cases. The two stages (yes/no/edit, and then escape patterns) is clear, and does not require so many additional keystrokes.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/