All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: Thomas Wichern <nordertom@gmx.de>
Cc: git-mailing <git@vger.kernel.org>
Subject: Re: git 1.7.10.msysgit.1: different behaviour in ".gitignore" and ".git/info/exclude"
Date: Wed, 30 May 2012 12:28:49 +0200	[thread overview]
Message-ID: <4FC5F661.6090105@viscovery.net> (raw)
In-Reply-To: <96434119.20120530104356@gmx.de>

Am 5/30/2012 10:43, schrieb Thomas Wichern:
> If you have a ".gitignore" - file that contains the pattern "/(*)/", a
> directory that matches the pattern is ignored completely.
> 
> If you put the same pattern into the ".git/info/exclude" - file, the
> pattern does not work - these directories still show up.
> 
> I expected that all directories anywhere the repository that match the
> pattern to be ignored.

The first slash in the pattern means: Match only in this directory, not in
subdirectories. For patterns in .git/info/exclude, "this directory" is the
top-level of the repository.

> Am I doing something wrong? Is the pattern not correct?

Perhaps you need "(*)/", i.e., without the first slash.

-- Hannes

  reply	other threads:[~2012-05-30 10:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-30  8:43 git 1.7.10.msysgit.1: different behaviour in ".gitignore" and ".git/info/exclude" Thomas Wichern
2012-05-30 10:28 ` Johannes Sixt [this message]
2012-05-30 10:52   ` Thomas Wichern

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=4FC5F661.6090105@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=git@vger.kernel.org \
    --cc=nordertom@gmx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.