From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 5BC196DE098B for ; Wed, 16 Aug 2017 17:41:35 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.059 X-Spam-Level: X-Spam-Status: No, score=-0.059 tagged_above=-999 required=5 tests=[AWL=-0.098, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5u7cLR5Xbr9M for ; Wed, 16 Aug 2017 17:41:31 -0700 (PDT) Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by arlo.cworth.org (Postfix) with ESMTPS id 054016DE010F for ; Wed, 16 Aug 2017 17:41:31 -0700 (PDT) Received: by mail-wr0-f169.google.com with SMTP id 49so21414890wrw.2 for ; Wed, 16 Aug 2017 17:41:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qLuOyGU/50lfJ+qO4iQmrUCwmBw57Z+Njgd2J4bddC8=; b=jXbH6Whw/S14C60/7ERcAIhvrL7PQaerIhIrDz6bcofcYTk9EOv39iwaIZ8lv1JSkS DUGy8a/5NOtN7YX86KAWqXAM2ymW7WEokEXbOIVQ75QfIJUzcnKhCOXXwKGMwZ+j4l9v c9MPdK0JiHthLyW0u1WQ/HBUmrbDGYqXdSm9QwEzDpSRIx2/NLDjXHqPx78cqhqLUZ7m mBiG0jZi0Ns7S6sZwiZlclHlEC8/P18YSXG1ZtJcS0MHd8skfHagwXZUYE6xwoZp30YX TEAz7orHU9Vy58MmLA9NeAZfCklRb1wEpdn8mIXUxFWA+diKNar87JJqlJ+3/Spyteyj 9w9w== X-Gm-Message-State: AHYfb5gc+NovDZzZ5bCokaebpK87dHR4rj7aAmvVZROzEt3qy/51XDRU pFaYPuU/oE3O8AEvz4s= X-Received: by 10.28.14.20 with SMTP id 20mr94855wmo.124.1502930488407; Wed, 16 Aug 2017 17:41:28 -0700 (PDT) Received: from home.thecybershadow.net ([89.28.117.31]) by smtp.gmail.com with ESMTPSA id 91sm1724334wrg.83.2017.08.16.17.41.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Aug 2017 17:41:27 -0700 (PDT) From: Vladimir Panteleev To: notmuch@notmuchmail.org Subject: [PATCH 2/2] Use rooted paths in .gitignore files Date: Thu, 17 Aug 2017 00:41:10 +0000 Message-Id: <20170817004110.6940-3-notmuch@thecybershadow.net> X-Mailer: git-send-email 2.13.3 In-Reply-To: <20170817004110.6940-1-notmuch@thecybershadow.net> References: <20170817004110.6940-1-notmuch@thecybershadow.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Thu, 17 Aug 2017 00:41:35 -0000 A leading / in paths in a .gitignore file matches the beginning of the path, meaning that for patterns without slashes, git will match files only in the current directory as opposed to in any subdirectory. Prefix relevant paths with / in .gitignore files, to prevent accidentally ignoring files in subdirectories and possibly slightly improve the performance of "git status". --- .gitignore | 18 +++++++++--------- bindings/python/.gitignore | 2 +- bindings/ruby/.gitignore | 6 +++--- compat/.gitignore | 2 +- contrib/go/.gitignore | 6 +++--- contrib/notmuch-mutt/.gitignore | 4 ++-- debian/.gitignore | 28 ++++++++++++++-------------- devel/nmbug/doc/.gitignore | 2 +- doc/.gitignore | 4 ++-- emacs/.gitignore | 8 ++++---- performance-test/.gitignore | 8 ++++---- performance-test/download/.gitignore | 4 ++-- test/.gitignore | 22 +++++++++++----------- test/test-databases/.gitignore | 2 +- 14 files changed, 58 insertions(+), 58 deletions(-) diff --git a/.gitignore b/.gitignore index 7b283fb3..0ccd217e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,16 @@ -.first-build-message -Makefile.config -sh.config -version.stamp +/.first-build-message +/Makefile.config +/sh.config +/version.stamp TAGS tags *cscope* -.deps +/.deps /notmuch -notmuch-shared -libnotmuch.so* -libnotmuch*.dylib +/notmuch-shared +/lib/libnotmuch.so* +/lib/libnotmuch*.dylib *.[ao] *~ .*.swp -releases +/releases diff --git a/bindings/python/.gitignore b/bindings/python/.gitignore index da0732e9..601acdd7 100644 --- a/bindings/python/.gitignore +++ b/bindings/python/.gitignore @@ -1,4 +1,4 @@ *.py[co] /docs/build /docs/html -build/ +/build/ diff --git a/bindings/ruby/.gitignore b/bindings/ruby/.gitignore index d682798a..c57ae63f 100644 --- a/bindings/ruby/.gitignore +++ b/bindings/ruby/.gitignore @@ -1,7 +1,7 @@ # .gitignore for bindings/ruby # Generated files -Makefile -mkmf.log -notmuch.so +/Makefile +/mkmf.log +/notmuch.so *.o diff --git a/compat/.gitignore b/compat/.gitignore index 107ba17a..7ede45e9 100644 --- a/compat/.gitignore +++ b/compat/.gitignore @@ -1 +1 @@ -zlib.pc +/zlib.pc diff --git a/contrib/go/.gitignore b/contrib/go/.gitignore index c394479f..223504b1 100644 --- a/contrib/go/.gitignore +++ b/contrib/go/.gitignore @@ -1,3 +1,3 @@ -src/github.com/ -pkg/ -bin/ +/src/github.com/ +/pkg/ +/bin/ diff --git a/contrib/notmuch-mutt/.gitignore b/contrib/notmuch-mutt/.gitignore index 682a5779..116bb715 100644 --- a/contrib/notmuch-mutt/.gitignore +++ b/contrib/notmuch-mutt/.gitignore @@ -1,2 +1,2 @@ -notmuch-mutt.1 -README.html +/notmuch-mutt.1 +/README.html diff --git a/debian/.gitignore b/debian/.gitignore index e8c2e82a..ab384182 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -1,14 +1,14 @@ -tmp/ -libnotmuch-dev/ -libnotmuch*/ -notmuch-emacs/ -notmuch/ -notmuch-dbg/ -notmuch-mutt/ -notmuch-vim/ -ruby-notmuch/ -python*-notmuch/ -*.debhelper -*.debhelper.log -*.substvars -files +/tmp/ +/libnotmuch-dev/ +/libnotmuch*/ +/notmuch-emacs/ +/notmuch/ +/notmuch-dbg/ +/notmuch-mutt/ +/notmuch-vim/ +/ruby-notmuch/ +/python*-notmuch/ +/*.debhelper +/*.debhelper.log +/*.substvars +/files diff --git a/devel/nmbug/doc/.gitignore b/devel/nmbug/doc/.gitignore index 4930881a..f25d695c 100644 --- a/devel/nmbug/doc/.gitignore +++ b/devel/nmbug/doc/.gitignore @@ -1,2 +1,2 @@ *.pyc -_build +/_build diff --git a/doc/.gitignore b/doc/.gitignore index 9fa35d08..bbb749fa 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1,3 +1,3 @@ *.pyc -_build -config.dox +/_build +/config.dox diff --git a/emacs/.gitignore b/emacs/.gitignore index 8e15eed7..fbf8dde6 100644 --- a/emacs/.gitignore +++ b/emacs/.gitignore @@ -1,4 +1,4 @@ -.eldeps* -*.elc -notmuch-version.el -notmuch-pkg.el +/.eldeps* +/*.elc +/notmuch-version.el +/notmuch-pkg.el diff --git a/performance-test/.gitignore b/performance-test/.gitignore index f3f9be41..8a5dabf5 100644 --- a/performance-test/.gitignore +++ b/performance-test/.gitignore @@ -1,4 +1,4 @@ -tmp.*/ -log.*/ -corpus/ -notmuch.cache.*/ +/tmp.*/ +/log.*/ +/corpus/ +/notmuch.cache.*/ diff --git a/performance-test/download/.gitignore b/performance-test/download/.gitignore index 7b092346..5c356204 100644 --- a/performance-test/download/.gitignore +++ b/performance-test/download/.gitignore @@ -1,2 +1,2 @@ -*.tar.gz -*.tar.xz +/*.tar.gz +/*.tar.xz diff --git a/test/.gitignore b/test/.gitignore index 226019ed..73fe7e24 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -1,11 +1,11 @@ -arg-test -corpora.mail -hex-xcode -parse-time -random-corpus -smtp-dummy -symbol-test -make-db-version -test-results -ghost-report -tmp.* +/arg-test +/corpora.mail +/hex-xcode +/parse-time +/random-corpus +/smtp-dummy +/symbol-test +/make-db-version +/test-results +/ghost-report +/tmp.* diff --git a/test/test-databases/.gitignore b/test/test-databases/.gitignore index b5624b74..9452199f 100644 --- a/test/test-databases/.gitignore +++ b/test/test-databases/.gitignore @@ -1 +1 @@ -*.tar.xz +/*.tar.xz -- 2.13.3