git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bruce Stephens <bruce.stephens@isode.com>
To: Howard Miller <howard@e-learndesign.co.uk>
Cc: git@vger.kernel.org
Subject: Re: gitignore - how to ignore only in current directory
Date: Sun, 23 May 2010 21:33:44 +0100	[thread overview]
Message-ID: <808w7a4atz.fsf@tiny.isode.net> (raw)
In-Reply-To: <AANLkTilGH-Z4IpgosqYPFCl3G2XsKDfAT3pH6vi-wuN8@mail.gmail.com> (Howard Miller's message of "Sun, 23 May 2010 21:28:39 +0100")

Howard Miller <howard@e-learndesign.co.uk> writes:

> I want to ignore a particular file name in a particular directory.
> However, the same filename may appear in subdirectories and in those
> cases I do *not* want it ignored. The documentation seems to imply
> that git will read up the directories looking for .gitignore files and
> will ignore files that I need included.

Make the pattern begin with /

[...]

  reply	other threads:[~2010-05-23 20:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-23 20:28 gitignore - how to ignore only in current directory Howard Miller
2010-05-23 20:33 ` Bruce Stephens [this message]
2010-05-23 20:38   ` Howard Miller
2010-05-23 20:36 ` Björn Steinbrink

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=808w7a4atz.fsf@tiny.isode.net \
    --to=bruce.stephens@isode.com \
    --cc=git@vger.kernel.org \
    --cc=howard@e-learndesign.co.uk \
    /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).