From: Duy Nguyen <pclouds@gmail.com>
To: Phil Pennock <phil-gitml@phil.spodhuis.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: .gitignore sub-dir exclusions not overriding '*'
Date: Wed, 19 Nov 2014 16:48:16 +0700 [thread overview]
Message-ID: <CACsJy8BHvucnEAW065OXOe5NBQkxp7+8HJb7XCGYgOa=pkxLVA@mail.gmail.com> (raw)
In-Reply-To: <20141119034010.GA18145@tower.spodhuis.org>
On Wed, Nov 19, 2014 at 10:40 AM, Phil Pennock
<phil-gitml@phil.spodhuis.org> wrote:
> Expected to work as .gitignore in top-level of repo:
>
> *
> !**/*.asc
> !.gitignore
>
gitignore man page has this "It is not possible to re-include a file
if a parent directory of that file is excluded". In this case,
directory "foo" is ignored by "*". Although it makes sense for this
particular case to re-include something in foo because we can clearly
see there are rules to re-include. It's on my todo list, but I don't
know when it will be implemented.
--
Duy
next prev parent reply other threads:[~2014-11-19 9:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 3:40 .gitignore sub-dir exclusions not overriding '*' Phil Pennock
2014-11-19 9:48 ` Duy Nguyen [this message]
2014-11-19 10:30 ` [PATCH] dir.c: allow re-include after a dir is excluded in some cases Nguyễn Thái Ngọc Duy
2014-11-19 18:48 ` Junio C Hamano
2014-11-20 0:27 ` Duy Nguyen
2014-11-19 23:41 ` .gitignore sub-dir exclusions not overriding '*' Phil Pennock
2014-11-20 1:26 ` Duy Nguyen
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACsJy8BHvucnEAW065OXOe5NBQkxp7+8HJb7XCGYgOa=pkxLVA@mail.gmail.com' \
--to=pclouds@gmail.com \
--cc=git@vger.kernel.org \
--cc=phil-gitml@phil.spodhuis.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).