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: 10925085 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D5861398 for ; Wed, 1 May 2019 13:56:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8071528BC1 for ; Wed, 1 May 2019 13:56:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 732AA28D6B; Wed, 1 May 2019 13:56:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0799C28BC1 for ; Wed, 1 May 2019 13:56:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726165AbfEAN4c (ORCPT ); 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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