From: Steffen Jaeckel <steffen.jaeckel@stzedn.de>
To: git@vger.kernel.org
Subject: Behavior of git ls-files
Date: Fri, 4 Mar 2011 18:38:31 +0100 [thread overview]
Message-ID: <691824945.20110304183831@stzedn.de> (raw)
Hi,
I want to list all files in a repository that are tracked, but shall be ignored
when following the patterns in .gitignore
I tried to do this by "git ls-files --exclude-standard -i" but it seems as if it
doesn't properly handle directory entries in .gitignore
The following example shall reproduce this issue:
> $ mkdir test
> $ cd test
> $ git init
> $ mkdir testdir
> $ touch testdir/test
> $ git add testdir/test
> $ git commit -m "add test"
> $ echo "testdir/" > .gitignore
> $ git ls-files --exclude-standard -i
Is the behavior of git ls-files correct or not?
Thanks,
Steffen
next reply other threads:[~2011-03-04 17:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-04 17:38 Steffen Jaeckel [this message]
2011-03-05 8:47 ` Behavior of git ls-files Clemens Buchacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=691824945.20110304183831@stzedn.de \
--to=steffen.jaeckel@stzedn.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).