Re: [RFC/PATCH] tag: make list exclude !<pattern>
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 11, 2012, 08:13 UTC
- Message-ID
- <7vlio9n5ym.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4F361DD4.9020108@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 10 quoted lines
> The proposal, amended to use "^" instead of "!", is that > > git for-each-ref A B ^C > > should mean "the reference names A and B but not C". Therefore, the command > > git rev-list $(git for-each-ref A B ^C) > > , which consistency suggests should do the same thing as the first > command,...
That is an utter rubbish that does not even deserve a response.
Your argument is like saying
git for-each-ref A
and
git for-each-ref $(git rev-parse A)
should somehow magically produce the same (or related) result. The for-each-ref command operates on refname patterns, while rev-list and rev-parse takes object names.