From: Junio C Hamano Date: Mon, 16 May 2016 18:43:12 GMT Subject: Re: [PATCH 5/5] pathspec: record labels Message-ID: In-Reply-To: Stefan Beller writes: >> I am NOT suggesting to make this enhancement in the prototype to >> allow us experiment with submodule selection use case, but this is >> an obvious place to allow >> >> :(label=A B):(label=C D) >> >> to mean ((A & B) | (C & D)) by making item->labels an array of set >> of labels. > > This is what already works with the series. Or rather: > > ":(label=A B)" ":(label=C D)" > > works as you would expect for (A&B) | (C&D). That is "duplicationg path". I was envisioning a single ":(label=A B):(label=C D)tediously/long/path/because/java/" a shorter and sweeter way to say your two pathspec variant, i.e. ":(label=A B)tediously/long/path/because/java/" \ ":(label=C D)tediously/long/path/because/java/"