From patchwork Wed Mar 6 10:42:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denton Liu X-Patchwork-Id: 10840849 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 A225C1575 for ; Wed, 6 Mar 2019 10:42:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CA0A2CFA0 for ; Wed, 6 Mar 2019 10:42:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8017B2D4EC; Wed, 6 Mar 2019 10:42:27 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 56F082CFA0 for ; Wed, 6 Mar 2019 10:42:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729223AbfCFKmZ (ORCPT ); Wed, 6 Mar 2019 05:42:25 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46976 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbfCFKmZ (ORCPT ); Wed, 6 Mar 2019 05:42:25 -0500 Received: by mail-pg1-f195.google.com with SMTP id 196so8088943pgf.13 for ; Wed, 06 Mar 2019 02:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=eSGvoVzcpHEYOsavRrwgAYLkw+LMlDt7QOTCrPHOXDs=; b=TY7IR1wWXclid3U18GvLOz4ZfLIMs0bJtV/92kJgX4ouZOgSq+PHFo7SEjfRGjTiQT EGCvuBFVGcWHBojmObGbeDRBtLzjlbTRc0xYD05f+vWSL031Fl8eHGY6QQ6x9XCZz7u3 iSkc5hisAbmUffOk2mvpGsNQzILCwBsANk/v4S6dKVki5cq7qszdT1ykko+vDtbFhk1J 2wMUM2GglO1B8pQ4RZwfxi7qMGx2XH9xBgNCxrzQzvKZXbRRRf53R0s1EHpBgMiXz0pb s6JY8hyeKdKMNDdyMGHSNhmhZx5BG55nLSvuphIk91j4lbEa70kGRqk2lziP9MT06zEk D5tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=eSGvoVzcpHEYOsavRrwgAYLkw+LMlDt7QOTCrPHOXDs=; b=BqkwaTGGu6mxfYSvOaMjEOBCaa59x2nOxwgsNU+JbaI9U32zYgQ8zrq1FlE195C0zC +JAPdhAi13cZppfjmEI7BTBepCW9PBkU4hRpkqBRJbLvPhBEdx4F4rZl1KnFBCk+qexP 8DMm8nIcHysWgsyP8EHqccUY577rhY8EZkjx9KT+vr8ctYl3oJXCt96LoqvWbURQIQGS VbBm43o512ZdPJC/vyk1NQxEyMKaFvZPe/nw6fXqbr7k9QXFuWqIogcQ0n70wIxYPzwP /I9WCfpPuAN7eiersvKbac27c734vruE3XF5sv6hkiOOA8mf+Xb9fG0XC/nRhkHJHkXD 8OPw== X-Gm-Message-State: APjAAAXdzp9CR+WUDZC2d2Zu7cApwYyKsguGjInXW0Wgp2cuYydxOuat Rh7sEm0UvDYYDRcmjv4UnwkHOmvT X-Google-Smtp-Source: APXvYqxBnuyXt6CbS+WSlw3pWMQa/WrqDRaEH20gtJvB7HbMSRopJRaGSoAmdCnQ6l/CozV+I8lahA== X-Received: by 2002:a17:902:9a4a:: with SMTP id x10mr6042807plv.93.1551868944036; Wed, 06 Mar 2019 02:42:24 -0800 (PST) Received: from archbookpro.localdomain (c-73-222-73-77.hsd1.ca.comcast.net. [73.222.73.77]) by smtp.gmail.com with ESMTPSA id k72sm5407706pfb.122.2019.03.06.02.42.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Mar 2019 02:42:23 -0800 (PST) Date: Wed, 6 Mar 2019 02:42:22 -0800 From: Denton Liu To: git@vger.kernel.org Cc: rpjday@crashcourse.ca Subject: [PATCH 1/1] git-clean.txt: specify core.excludesFile variable is used Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In the git-clean documentation, -x and -e documented .gitignore, $GIT_DIR/info/excludes but neglected to mention the file pointed to by core.excludesFile. Explicitly mention that variable so that the list is exhaustive. Reported-by: Robert P. J. Day Signed-off-by: Denton Liu --- Documentation/git-clean.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/git-clean.txt b/Documentation/git-clean.txt index 03056dad0d..c6023b742c 100644 --- a/Documentation/git-clean.txt +++ b/Documentation/git-clean.txt @@ -55,13 +55,15 @@ OPTIONS -e :: --exclude=:: - In addition to those found in .gitignore (per directory) and - $GIT_DIR/info/exclude, also consider these patterns to be in the + In addition to those found in .gitignore (per directory), + $GIT_DIR/info/exclude, and the `core.excludesFile` variable, also + consider these patterns to be in the set of the ignore rules in effect. -x:: Don't use the standard ignore rules read from .gitignore (per - directory) and $GIT_DIR/info/exclude, but do still use the ignore + directory), $GIT_DIR/info/exclude, and the `core.excludesFile` + variable, but do still use the ignore rules given with `-e` options. This allows removing all untracked files, including build products. This can be used (possibly in conjunction with 'git reset') to create a pristine