From: Duy Nguyen Date: Tue, 26 Nov 2013 03:13:53 GMT Subject: Re: Filter log based on paths NOT touched Message-ID: In-Reply-To: On Tue, Nov 26, 2013 at 3:35 AM, Junio C Hamano wrote: > Phillip Susi 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