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

[BUG] 'git status --ignored' <pathspec> matches partial names

From
SWSean Whitton <spwhitton@spwhitton.name>
Date
Sep 14, 2026, 13:31 UTC
Message-ID
<87ld94klhf.fsf@athena.silentflame.com>
Steps to reproduce:

git init foo cd foo mkdir bar echo bar/ >.gitignore git init bar/baz git init bar/quux git status --porcelain --ignored --untracked-files -- ba

Expected output: none, "ba" doesn't match "bar".

Actual output: !! bar/baz/ !! bar/quux/

Credits to Lester Longley for the reproduction, in Emacs bug#81625.
-- 
Sean Whitton
Next: René Scharfe
Message 1 of 6 in “[BUG] 'git status --ignored' <pathspec> matches partial names”
  1. Sean WhittonSep 14, 2026
  2. René ScharfeSep 15, 2026
  3. dir: skip excluded directory with nested repo on prefix matchRené Scharfe, Sep 18, 2026
  4. Junio C HamanoSep 22, 2026
  5. René ScharfeSep 26, 2026
  6. dir: skip excluded directory with nested repo on prefix matchRené Scharfe, Sep 26, 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.