git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 18:10 UTC

Re: git grep failure?

From
Jeff King <peff@peff.net>
Date
Mar 19, 2026, 00:38 UTC
Message-ID
<20260319003829.GA3530301@coredump.intra.peff.net>
In-Reply-To
<7bbcda60-dad4-41d4-b994-c19f83f37e2f@infradead.org>
On Wed, Mar 18, 2026 at 04:28:17PM -0700, Randy Dunlap wrote:
Show 13 quoted lines
> If I apply the patch at
> https://lore.kernel.org/linux-doc/c5bb61cf789df1ecb32facc29df9749987c7ddfc.1773346620.git.ljs@kernel.org/
> 
> Subject: [PATCH 02/15] mm: add documentation for the mmap_prepare file operation callback
> 
> to the Linux kernel tree (e.g., linux-next-20260316), it applies cleanly.
> 
> I noticed a typo in the patch ("struct vma_area_desc" should be
> "struct vm_area_desc"). When I run
> $ git grep vma_area_desc
> the output is empty.
> 
> Is this expected? (but not by me :)

I applied the patch and git-grep does produce one line of output (the instance added by the patch).

Two possible differences:
  - are you sure the patch application succeeded?
  - are you in a different subdirectory? By default git-grep narrows its
    search to your current working directory and its subdirectories. So
    if you are in arch/ or something, it would not find the result in
    Documentation/. You can do:
      git grep vma_area_desc :/
    to search from the root of the project.
-Peff
Previous: Randy DunlapNext: Randy Dunlap
Message 2 of 7 in “git grep failure?”
  1. Randy DunlapMar 18, 2026
  2. Jeff KingMar 19, 2026
  3. Randy DunlapMar 19, 2026
  4. Junio C HamanoMar 19, 2026
  5. Jeff KingMar 19, 2026
  6. Randy DunlapMar 19, 2026
  7. Junio C HamanoMar 19, 2026

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.