Re: Expected behaviour for pathspecs matching attributes in subdirectories
- From
- Matthew Hughes <mhughes@uw.co.uk>
- Date
- Jul 7, 2023, 08:45 UTC
- Message-ID
- <CAEzX-aCnp0avSbMdyFQz=3s4-hjdeVwnndR5b7UeZo4oNMnv7A@mail.gmail.com>
- In-Reply-To
- <xmqqjzvcbvqd.fsf@gitster.g>
On Thu, 6 Jul 2023 at 22:01, Junio C Hamano <gitster@pobox.com> wrote:
> Study the use of test_when_finished in other tests, perhaps?
Thanks for the suggestion, that appears to be what I was looking for. It's my first time looking around Git's test framework, so I had a scan of the docs but managed to miss that one.
I'd be happy to submit a patch adding those tests if you'd like. Though I would like to just confirm that in the patch I shared it is not a bug that:
git ls-files ":(attr:otherLabel)sub/" >actual &&
test_must_be_empty actualI.e. that no files are listed here even tough `sub/fileSetLabel` has the attribute `otherLabel`?