Re: git ls-files -o seems to ignore .gitignore
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Oct 27, 2014, 08:31 UTC
- Message-ID
- <vpq8uk1lxqb.fsf@anie.imag.fr>
- In-Reply-To
- <20141027064747.GA7773@hashpling.org>
Charles Bailey <charles@hashpling.org> writes:
Show 8 quoted lines
> On Mon, Oct 27, 2014 at 07:16:49AM +0100, Richard PALO wrote: >> Hash: SHA1 >> >> I'm having an issue in that 'git ls-files -o' seems to ignore >> [parts of] .gitignore whereas other commands, such as 'git status' >> seem fine. > > This is, as far as I am aware, by design.
I would not call that "by design", but indeed "git ls" was written this way, and it's a plumbing command for which we do not want backward-incompatible changes. So, --exclude-standard is available, but not activated by default.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/