git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git ls-files --ignored and ignored directory
@ 2012-11-06 21:19 Damien Robert
  2012-11-06 21:24 ` Damien Robert
  0 siblings, 1 reply; 2+ messages in thread
From: Damien Robert @ 2012-11-06 21:19 UTC (permalink / raw)
  To: git

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-06 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06 21:19 git ls-files --ignored and ignored directory Damien Robert
2012-11-06 21:24 ` Damien Robert

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).