git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C HamanoNext: Phillip Susi
Message 3 of 4 in “Filter log based on paths NOT touched”
  1. Phillip SusiNov 25, 2013
  2. Junio C HamanoNov 25, 2013
  3. Duy NguyenNov 26, 2013
  4. Phillip SusiNov 26, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.