git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ls-files -o -i --directory omits files/directories
@ 2020-04-20  8:03 Jakub Horodecki
  0 siblings, 0 replies; only message in thread
From: Jakub Horodecki @ 2020-04-20  8:03 UTC (permalink / raw)
  To: git

Hello

I found a case for git ls-files I suspect might be a bug. For the
following example repository structure:

.
|--   InnerDir
|     |--   excluded.txt
|--   file1.txt
|--   .gitignore

and the .gitignore content:
InnerDir/*

the command

git ls-files -oi --exclude-standard --directory

returns no results, that is neither "InnerDir/" directory nor
"InnerDir/excluded.txt" file. I would expect one of the entries since
at the moment information about the file is missing completely in the
listing. Both executing the command without --directory flag and
adding "InnerDir" to .gitignore produce some output from the command.

So the command returns no results for --others excluded files if
--directory flag is specified and all files in a directory are ignored
(but directory itself is not). Is this actually a bug or I
misunderstood something?

I tested it on latest release of Git for Windows (2.26.1.windows.1, x64).

Best Regards
Jakub Horodecki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-20  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  8:03 ls-files -o -i --directory omits files/directories Jakub Horodecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).