# Filter log based on paths NOT touched

4 messages from 2013-11-25 to 2013-11-26. Participants: Phillip Susi, Junio C Hamano, Duy Nguyen.
Thread: https://gitlist.dev/t/35404

## Phillip Susi, 2013-11-25 20:20

Subject: Filter log based on paths NOT touched
Message-ID: <5293B0F9.1050200@ubuntu.com>
URL: https://gitlist.dev/e/5293B0F9.1050200%40ubuntu.com

```
-----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, 2013-11-25 20:35

Subject: Re: Filter log based on paths NOT touched
Message-ID: <xmqqeh64xlqw.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqeh64xlqw.fsf%40gitster.dls.corp.google.com
In-Reply-To: <5293B0F9.1050200@ubuntu.com>

```
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, 2013-11-26 03:13

Subject: Re: Filter log based on paths NOT touched
Message-ID: <CACsJy8DR-ckmZ8Ey9Gh1fhv17_+mRPmeLdj_7LoCnvc9fnnpTg@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8DR-ckmZ8Ey9Gh1fhv17_%2BmRPmeLdj_7LoCnvc9fnnpTg%40mail.gmail.com
In-Reply-To: <xmqqeh64xlqw.fsf@gitster.dls.corp.google.com>

```
On Tue, Nov 26, 2013 at 3:35 AM, Junio C Hamano <gitster@pobox.com> wrote:
> 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, 2013-11-26 04:34

Subject: Re: Filter log based on paths NOT touched
Message-ID: <529424DC.6030107@ubuntu.com>
URL: https://gitlist.dev/e/529424DC.6030107%40ubuntu.com
In-Reply-To: <CACsJy8DR-ckmZ8Ey9Gh1fhv17_+mRPmeLdj_7LoCnvc9fnnpTg@mail.gmail.com>

```
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 11/25/2013 10:13 PM, Duy Nguyen wrote:
> 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-----

```
