Re: Filter log based on paths NOT touched
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Nov 26, 2013, 03:13 UTC
- Message-ID
- <CACsJy8DR-ckmZ8Ey9Gh1fhv17_+mRPmeLdj_7LoCnvc9fnnpTg@mail.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:
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