From: Sam Ravnborg <sam@ravnborg.org>
To: Pavel Roskin <proski@gnu.org>
Cc: git <git@vger.kernel.org>
Subject: Re: git-ls-files in subdirectories ignore higher-up .gitignore
Date: Wed, 25 Jan 2006 07:11:40 +0100 [thread overview]
Message-ID: <20060125061140.GA8408@mars.ravnborg.org> (raw)
In-Reply-To: <1138125570.24415.11.camel@dv>
On Tue, Jan 24, 2006 at 12:59:30PM -0500, Pavel Roskin wrote:
> Hello!
>
> git-ls-files appears to behave in a way that may be unexpected to the
> users. When run in a subdirectory, git-ls-files never reads .gitignore
> or whatever is specified by --exclude-per-directory in the parent
> directories.
>
> This can be demonstrated in git's own repository:
>
> $ touch t/test.o
> $ git-ls-files --others --exclude-per-directory=.gitignore
> $ cd t
> $ git-ls-files --others --exclude-per-directory=.gitignore
> test.o
> $
>
> Before I attempt to fix it, I'd like to make sure it's a bug, not a
> feature.
I for one consider it a bug.
I expect exactly same output if I do
git ls-files t/
or
cd t; git ls-files
Very usefull when I limit grep to some part of the kernel tree for
example.
Sam
next prev parent reply other threads:[~2006-01-25 6:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-24 17:59 git-ls-files in subdirectories ignore higher-up .gitignore Pavel Roskin
2006-01-25 2:08 ` Junio C Hamano
2006-01-25 6:11 ` Sam Ravnborg [this message]
2006-02-09 8:16 ` [PATCH] ls-files: honour per-directory ignore file from higher directories Junio C Hamano
2006-02-10 3:38 ` Pavel Roskin
2006-02-10 4:44 ` Junio C Hamano
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=20060125061140.GA8408@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=git@vger.kernel.org \
--cc=proski@gnu.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).