git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Wichern <nordertom@gmx.de>
To: Johannes Sixt <j.sixt@viscovery.net>
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:52:33 +0200	[thread overview]
Message-ID: <799289647.20120530125233@gmx.de> (raw)
In-Reply-To: <4FC5F661.6090105@viscovery.net>

Hi Hannes,

thanks a lot - it was my fault and you're right.
It works with "(*)/" very well!

Horrido,
Thomas


> 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:52 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
2012-05-30 10:52   ` Thomas Wichern [this message]

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=799289647.20120530125233@gmx.de \
    --to=nordertom@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=j.sixt@viscovery.net \
    /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).