Re: git ls-files -o seems to ignore .gitignore
- From
Charles Bailey <charles@hashpling.org>
- Date
- Oct 27, 2014, 06:47 UTC
- Message-ID
- <20141027064747.GA7773@hashpling.org>
- In-Reply-To
- <544DE351.9060800@netbsd.org>
On Mon, Oct 27, 2014 at 07:16:49AM +0100, Richard PALO wrote:
Show 5 quoted lines
> 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. If you want to apply the standard ignore rules to the output of ls-files -o then you can use the --exclude-standard option.