Re: [RFC] Define "precious" attribute and support it in `git clean`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 13, 2023, 16:39 UTC
- Message-ID
- <xmqqfs2e3292.fsf@gitster.g>
- In-Reply-To
- <9C4A2AFD-AAA2-4ABA-8A8B-2133FD870366@icloud.com>
Sebastian Thiel <sebastian.thiel@icloud.com> writes:
> But if there is now a prefix, I feel that it might as well be chosen so that it > is easier to remember and/or less likely to cause conflicts.
Another criteria is that it is not very often used in real pathnames, of course, and '!' and '$' are good ones.
Come to think of it, we might be able to retrofit '!' without too much damage. Something like "!unignored" is now a deprecated but still supported way to say "!!unignored", "!*precious" is new, and "\!anything" is a pathname that begins with '!'.
> Yes, I think my paragraph above is exactly that but with examples to practice > the new syntax-proposal.
OK.