list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Bug report: `git-ls-files --exclude-standard --ignored --others --directory` gives incomplete output
@ 2019-04-18  6:49 Carmen Bianca Bakker
  0 siblings, 0 replies; only message in thread
From: Carmen Bianca Bakker @ 2019-04-18  6:49 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]

Hi git developers,

Apologies in advance if my mailing list etiquette isn't 100% perfect. I
don't use mailing lists all that often. Please CC me in replies, because
I am not subscribed.

I use `git-ls-files` in a project[1] to get a list of ignored
files/directories, and to ignore them in my project.  I found that using
`--directory` speeds things up by a lot, so I can ignore entire

However, I get inconsistent results between using the --directory flag
and not.  To demonstrate this, I created a super tiny repository[2]. 
The repository ignores all `*.mo` files.

I then do:

$ mkdir po/subdir
$ touch po/ po/subdir/

When I run `git ls-files --exclude-standard --ignored --others`, my
output is:

But when I run `git ls-files --exclude-standard --ignored --others 
--directory`, my output is:

Rather strangely, when I alter the command to `git ls-files --exclude-
standard --ignored --others --directory --no-empty-directory`, I get:

This seems very counter-intuitive to me, because po/subdir/ is an empty
directory in the sense that it contains no files tracked by git.

Is this a bug, or is this a miscomprehension on my part about how `git-
ls-files` is supposed to function?

With kindness,

[1]: <
[2]: <>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

only message in thread, other threads:[~2019-04-18  6:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18  6:49 Bug report: `git-ls-files --exclude-standard --ignored --others --directory` gives incomplete output Carmen Bianca Bakker

Code repositories for project(s) associated with this inbox:

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 read-only IMAP folder(s) and NNTP newsgroup(s).