Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5BE3D429E21 for ; Mon, 3 Oct 2011 10:38:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gFy0kwE+BaW1 for ; Mon, 3 Oct 2011 10:38:52 -0700 (PDT) Received: from socrates.hocat.ca (socrates.hocat.ca [76.10.188.53]) by olra.theworths.org (Postfix) with ESMTP id B7578431FB6 for ; Mon, 3 Oct 2011 10:38:52 -0700 (PDT) Received: from hermes.hocat.ca (hermes.hocat.ca [69.165.170.253]) by socrates.hocat.ca (Postfix) with SMTP id E30691C5E for ; Mon, 3 Oct 2011 11:38:49 -0600 (MDT) Received: (nullmailer pid 8104 invoked by uid 1000); Mon, 03 Oct 2011 17:38:48 -0000 From: Tom Prince To: notmuch@notmuchmail.org Subject: notmuch and git User-Agent: Notmuch/0.7 (http://notmuchmail.org) Emacs/23.3.3 (x86_64-pc-linux-gnu) Date: Mon, 03 Oct 2011 13:38:48 -0400 Message-ID: <87y5x27z6f.fsf@hermes.hocat.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 17:38:53 -0000 I know that having an exclude option for notmuch has been discussed a number of times. I have wanted such a feature to be able to ignore the .git directroy, since I keep my mail in a git repository. I recently discovered a workaround. If you make .git a text file containing ===== .git ==== gitdir: .notmuch/git =============== and move the .git directory to .notmuch/git, git will behave as if it is a normal repository, and notmuch will ignore .notmuch/git. notmuch will warn once about .git not being a mail file, but since it is static, it won't warn about it every time one does 'notmuch new'. Tom