threads / discuss / 35404

Filter log based on paths NOT touched

Subject: Filter log based on paths NOT touched

## tl;dr

4 messages between Nov 25, 2013 and Nov 26, 2013.

replies: 3people: 3as markdown or json

Phillip Susi· Nov 25, 2013, 20:20 UTC · lore
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I can't seem to find a way to invert the meaning of a pathspec given
to git log in order to find commits touching anything BUT a given
path.  Does such a thing exist?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSk7D5AAoJEJrBOlT6nu75myIIAMoAgihPAhDrCBpRKUHF/X8S B8vjwIg7zALajU+vrz7B/UyxKFHC54sYn0MaAA5htBXKCtd6L0tHrNa1gYbd9qT+ xgTuF7+Unwv90yFBEsoZgEwlSyaLBAVHknMiE4ecxaJrlhBqESbePNrORCwCAuPq ANrYunEETN2KNgYBkNszdEp7Ga9RcP7LWisL/pNV2k+ac7YfqGp1jsN00jLMYqvH c+8Kl154N3xgvk+pGvkKGbO3MavkmEK47lLL929g9iXeP3NkMsrxyEjhnABD9tS3 SxzYZt9G+lpH2Tv8l1/NqMafdNy5P7CEs00C4JZn1EzEcIBqMeYgUhce+WU75qc= =p2gM -----END PGP SIGNATURE-----

Junio C Hamano· Nov 25, 2013, 20:35 UTC · re: Phillip Susi · lore

Re: Filter log based on paths NOT touched

Phillip Susi <psusi@ubuntu.com> writes:
> I can't seem to find a way to invert the meaning of a pathspec given
> to git log in order to find commits touching anything BUT a given
> path.  Does such a thing exist?
Not yet (look for "negative pathspec").
Duy Nguyen· Nov 26, 2013, 03:13 UTC · re: Junio C Hamano · lore

Re: Filter log based on paths NOT touched

On Tue, Nov 26, 2013 at 3:35 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Phillip Susi <psusi@ubuntu.com> writes:
>
>> I can't seem to find a way to invert the meaning of a pathspec given
>> to git log in order to find commits touching anything BUT a given
>> path.  Does such a thing exist?
>
> Not yet (look for "negative pathspec").

There's a difference between "skip commits that touch anything directory foo even if it also touches something outside of foo" and "skip commits that _only_ touches something in foo". Not sure which way Phillip wants here. Negative pathspec only supports the latter. The former needs a new option in rev-list, because the logic to consider a commit not a match if it matches a pathspec is out of tree_entry_interesting()'s control.

-- 
Duy
Phillip Susi· Nov 26, 2013, 04:34 UTC · re: Duy Nguyen · lore

Re: Filter log based on paths NOT touched

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 11/25/2013 10:13 PM, Duy Nguyen wrote:
Show 7 quoted lines
> There's a difference between "skip commits that touch anything
> directory foo even if it also touches something outside of foo" and
> "skip commits that _only_ touches something in foo". Not sure which
> way Phillip wants here. Negative pathspec only supports the latter.
> The former needs a new option in rev-list, because the logic to
> consider a commit not a match if it matches a pathspec is out of
> tree_entry_interesting()'s control.
I'm looking for the latter.  Specifically I'm trying to see what changes to the upstream code a debian package has made so I need to ignore commits that only change things in debian/.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJSlCTcAAoJEJrBOlT6nu75jUQIAJOybMyXE6lr4y4aX6od02Rn lINvPVC1Xub2E1lsofIB+N4QvZDRWlIJOIcj3GRqirzUcNBaIOUxUW4+UV7KgMQH wmImS8DdBgrkI8Sompe9B0gqd4lmB2mzTutQfOzdEZ/ZOU50935daYboK//X7zM/ vSmumJpRwNfw1BKyuxVpAQ8Ablo9yUu2cswLKJPSKyQkT9d/AJn07LE5/DKZORQN RD3r94kToftgTfsQTJbNpPujJ5nVHwVmiC44Qghdquj54l++ai5Xs2wRU3Za3i+O ts7Tn5Lrw+pFAT5Lnt0v8Yedp7fVgjRhIsNEDIVlgNuHevP/oBOXIxuLJBlCBIE= =AYYO -----END PGP SIGNATURE-----

← back to recent threads