From patchwork Wed May 1 13:56:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 163212 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp4552366ill; Wed, 1 May 2019 06:56:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPU2fz+l7blgivmghLtmUMxo2DNtV5OUtk7khHKoshTrKVW6O78fQOKLM6+TWqR8QBqtjs X-Received: by 2002:aa7:8083:: with SMTP id v3mr20924167pff.135.1556718994644; Wed, 01 May 2019 06:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556718994; cv=none; d=google.com; s=arc-20160816; b=SZ3OtpbZ/wx3+b6DWvnMHoVMg0s0HgCn4w3Bw6Y44gSpS17rmS1/JorVCLIKEOsj0U 9cZlABP0X1aYzzXvnZO0mrE71eH4CExQ8eUmkpx7yRHYZY6JCv+zQANNMVyvdy2d9EW7 Tt9XMwuCFKsM1WD45iWWTV3sDXjoFfhn+yelRhTS9/qHQX5H27knR+irZcqSs4LKtZYX ec9l1BJuWpEnm7gMVlm2tyWYsF246QQ3sOTanlUZgeO2iLF7s+WNO/wMe65QLqqpf7tP cvZ0tLxnpq3iGKFZS4YcRpxcxUHdn8eC+VvlmXTuO41Eksde+aApZFxDJqDH8RITGTcP hcjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=ryhYQnIGLUAdlmkJ0CgmlDpVjLcz8vDYxbO0QCICOE0=; b=DYL9Wfuoa+af4aQKxgeIGAkM5GruRg+jKeE0wrkfcuBcTgah+GpIPxkt8afGYGMYD3 5YN6BSaN/p7C8Ao+IfB7w32YeQ0us2LxEGYwVjXTCeSmYIFHU4z/nPKxJ6dXVgpF4uPU NyI0howiJmMhxO+7xcUraRvcae3tCbgyFy0+JpfB80oXXkg8NS8Lo4uWt8+WRKFvqS/f f+wtS6baUcX1IuRJADhlcB8bvuXSGc9yh3R71ZS3lcBWy8a1XZf7YzlTbIiVlRCO5yxj oN1i3kxzJa1SdtoiC662GxPpSyS912VUBG6s6sQpTu95VjX79fp2zdw3062TdiPu4UV4 iiPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0e9eaGJD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si39653055pgb.262.2019.05.01.06.56.34; Wed, 01 May 2019 06:56:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0e9eaGJD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbfEAN4c (ORCPT + 30 others); Wed, 1 May 2019 09:56:32 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:64236 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbfEAN4c (ORCPT ); Wed, 1 May 2019 09:56:32 -0400 X-Greylist: delayed 170526 seconds by postgrey-1.27 at vger.kernel.org; Wed, 01 May 2019 09:56:31 EDT Received: from grover.flets-west.jp (softbank126125154137.bbtec.net [126.125.154.137]) (authenticated) by conuserg-09.nifty.com with ESMTP id x41Du4f1032765; Wed, 1 May 2019 22:56:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x41Du4f1032765 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1556718965; bh=ryhYQnIGLUAdlmkJ0CgmlDpVjLcz8vDYxbO0QCICOE0=; h=From:To:Cc:Subject:Date:From; b=0e9eaGJD2hULewc4Q/JXTQyET5srmFT2jcjQmeXNBlnVDSwyJBojUPYsSCfmQwD4m UgsTDCBEdVNIXl+we2Po+JzKny6iUhSxe4+lDShuLeE13Z1GU06ezVW74wtfsB3mCq jFvnsakw++53+9eMCPaql8FFKpLwb9vACzPo9c059m9Uz125fvf3W+MKKNj6leIy2C +5RUQI8SGRHLSkGRMxjH+8TReuWeJN7StuB2lp64GhvI1iIUZZ0KdWxhWKU4A1bgnX YWUFgiYOlQr5YX0ZuSpHr4seaFWdJhXJ2Lu//ncu4sSOy5L0H9eVjcWM961YZhv0h+ A+pC6oTu/aK7A== X-Nifty-SrcIP: [126.125.154.137] From: Masahiro Yamada To: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2] sh: exclude vmlinux.scr from .gitignore pattern Date: Wed, 1 May 2019 22:56:01 +0900 Message-Id: <1556718961-4607-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/sh/boot/.gitignore has the pattern "vmlinux*"; this is effective not only for the current directory, but also for any sub-directories. So, from the point of .gitignore grammar, the following check-in files are also considered to be ignored: arch/sh/boot/compressed/vmlinux.scr arch/sh/boot/romimage/vmlinux.scr As the manual gitignore(5) says "Files already tracked by Git are not affected", this is not a problem as far as Git is concerned. However, Git is not the only program that parses .gitignore because .gitignore is useful to distinguish build artifacts from source files. For example, tar(1) supports the --exclude-vcs-ignore option. As of writing, this option does not work perfectly, but it intends to create a tarball excluding files specified by .gitignore. So, I believe it is better to fix this issue. Signed-off-by: Masahiro Yamada --- Changes in v2: - Add more information to the commit log to clarify my main motivation arch/sh/boot/.gitignore | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/arch/sh/boot/.gitignore b/arch/sh/boot/.gitignore index 541087d..f50fdd9 100644 --- a/arch/sh/boot/.gitignore +++ b/arch/sh/boot/.gitignore @@ -1,3 +1,4 @@ zImage vmlinux* uImage* +!vmlinux.scr