git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Filter log based on paths NOT touched
@ 2013-11-25 20:20 Phillip Susi
  2013-11-25 20:35 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Phillip Susi @ 2013-11-25 20:20 UTC (permalink / raw)
  To: git

-----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-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Filter log based on paths NOT touched
  2013-11-25 20:20 Filter log based on paths NOT touched Phillip Susi
@ 2013-11-25 20:35 ` Junio C Hamano
  2013-11-26  3:13   ` Duy Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2013-11-25 20:35 UTC (permalink / raw)
  To: Phillip Susi; +Cc: git

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").

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Filter log based on paths NOT touched
  2013-11-25 20:35 ` Junio C Hamano
@ 2013-11-26  3:13   ` Duy Nguyen
  2013-11-26  4:34     ` Phillip Susi
  0 siblings, 1 reply; 4+ messages in thread
From: Duy Nguyen @ 2013-11-26  3:13 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Phillip Susi, Git Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Filter log based on paths NOT touched
  2013-11-26  3:13   ` Duy Nguyen
@ 2013-11-26  4:34     ` Phillip Susi
  0 siblings, 0 replies; 4+ messages in thread
From: Phillip Susi @ 2013-11-26  4:34 UTC (permalink / raw)
  To: Duy Nguyen, Junio C Hamano; +Cc: Git Mailing List

-----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-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-26  4:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-25 20:20 Filter log based on paths NOT touched Phillip Susi
2013-11-25 20:35 ` Junio C Hamano
2013-11-26  3:13   ` Duy Nguyen
2013-11-26  4:34     ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).