This patch fixes a bug in `git add` where a wildcard pathspec (e.g., 'f*') fails to expand correctly if a file with the *exact* name ('f*') exists. Previously, Git would incorrectly add only the literal match on the first run and skip expanding the wildcard. With this fix, wildcard expansion behaves consistently even in the presence of an exact filename match. To explicitly add the literal file, users should quote the wildcard: git add 'f\*' Thanks you K Jayatheerth (1): add: fix handling literal filenames and wildcards dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.49.0