From: Sean Whitton <spwhitton@spwhitton.name>
To: git@vger.kernel.org
Cc: 81625@debbugs.gnu.org, Lester Longley <lester@ieee.org>
Subject: [BUG] 'git status --ignored' <pathspec> matches partial names
Date: Mon, 14 Sep 2026 14:31:40 +0100 [thread overview]
Message-ID: <87ld94klhf.fsf@athena.silentflame.com> (raw)
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 reply other threads:[~2026-09-14 13:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-14 13:31 Sean Whitton [this message]
2026-09-15 15:54 ` [BUG] 'git status --ignored' <pathspec> matches partial names René Scharfe
2026-09-18 11:04 ` [PATCH] dir: skip excluded directory with nested repo on prefix match René Scharfe
2026-09-22 4:57 ` Junio C Hamano
2026-09-26 10:51 ` René Scharfe
2026-09-26 10:48 ` [PATCH v2] " René Scharfe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ld94klhf.fsf@athena.silentflame.com \
--to=spwhitton@spwhitton.name \
--cc=81625@debbugs.gnu.org \
--cc=git@vger.kernel.org \
--cc=lester@ieee.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox