what should "git clean -n -f [-d] [-x] <pattern>" do?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 9, 2024, 20:20 UTC
- Message-ID
- <xmqq34v6gswv.fsf@gitster.g>
I think the current code makes "-n" take precedence, and ignores "-f". Shouldn't it either
(1) error out with "-n and -f cannot be used together", or (2) let "-n" and "-f" follow the usual "last one wins" rule?
The latter may be logically cleaner but it is a change that breaks backward compatibility big time in a more dangerous direction, so it may not be desirable in practice, with too big a downside for a too little gain.