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

git ls-files --ignored and ignored directory

From
DRDamien Robert <damien.olivier.robert+gmane@gmail.com>
Date
Nov 6, 2012, 21:19 UTC
Message-ID
<k7bus9$o9t$1@ger.gmane.org>

I would like to use git ls-files to show all the ignored files, including directory.

As an example of setup:

mkdir /tmp/git && cd /tmp/git git init mkdir a b touch a/a touch b/b cat >.gitignore << EOF a/ b/* EOF

Then if I do: $ git ls-files --exclude-standard --ignored --others b/b $ git ls-files --exclude-standard --ignored --others --directory a/

In the first case I was expecting a/a b/b and in the second case a/ b/

Is there a way to get the behavior I'd like? Thanks!
Next: Damien Robert
Message 1 of 2 in “git ls-files --ignored and ignored directory”
  1. Damien RobertNov 6, 2012
  2. Damien RobertNov 6, 2012

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.