From patchwork Thu Sep 15 16:06:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junio C Hamano X-Patchwork-Id: 12977594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB38FC6FA89 for ; Thu, 15 Sep 2022 16:11:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbiIOQLI (ORCPT ); Thu, 15 Sep 2022 12:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbiIOQLF (ORCPT ); Thu, 15 Sep 2022 12:11:05 -0400 X-Greylist: delayed 238 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 15 Sep 2022 09:11:04 PDT Received: from pb-smtp20.pobox.com (pb-smtp20.pobox.com [173.228.157.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E3F17C1F0 for ; Thu, 15 Sep 2022 09:11:04 -0700 (PDT) Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 93E531B8647; Thu, 15 Sep 2022 12:07:06 -0400 (EDT) (envelope-from gitster@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=d8TNSD7FaF+2ZrOfDsPLLGfo/ Xd/JgbMI4bWDIj8brM=; b=IbLNexRDUOvLfAiowb9kpjqeLKiEuNVANDizzwyDV 4zBbu14L7lg+RUAMBeBBBp9XRb2YPt8SbrhBBpfavs3/jWUiy4fgNn+nZF5M7tqL MFyVfUAeldSsQ6/oSgmEnA5PETKnTuuGc/UtUO9Q9Ikd3i1oVK6RJxDbeTdUenN4 4g= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 8D0061B8646; Thu, 15 Sep 2022 12:07:06 -0400 (EDT) (envelope-from gitster@pobox.com) Received: from pobox.com (unknown [34.83.5.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 2050F1B8640; Thu, 15 Sep 2022 12:07:02 -0400 (EDT) (envelope-from gitster@pobox.com) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH 1/5] environ: document GIT_SSL_NO_VERIFY Date: Thu, 15 Sep 2022 09:06:55 -0700 Message-Id: <20220915160659.126441-2-gitster@pobox.com> X-Mailer: git-send-email 2.37.3-780-gd940517dcb In-Reply-To: <20220915160659.126441-1-gitster@pobox.com> References: <20220915160659.126441-1-gitster@pobox.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 6F4E02FC-3510-11ED-88C3-C2DA088D43B2-77302942!pb-smtp20.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Even though the name of the environment variable is mentioned in "git config --help" from http.sslVerify, there is no description for it. Add one. Note that this is not a usual Boolean environment variable whose value can be yes/true/on vs no/false/off; the existence of it is enough to trigger the feature named by the variable. Signed-off-by: Junio C Hamano --- Documentation/git.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/git.txt b/Documentation/git.txt index 0ef7f5e4ec..1b7e37e79a 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -682,6 +682,11 @@ for further details. plink or tortoiseplink. This variable overrides the config setting `ssh.variant` that serves the same purpose. +`GIT_SSL_NO_VERIFY`:: + Setting and exporting this environment variable to any value + tells Git not to verify the SSL certificate when fetching or + pushing over HTTPS. + `GIT_ASKPASS`:: If this environment variable is set, then Git commands which need to acquire passwords or passphrases (e.g. for HTTP or IMAP authentication) From patchwork Thu Sep 15 16:06:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junio C Hamano X-Patchwork-Id: 12977592 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F930C6FA89 for ; Thu, 15 Sep 2022 16:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229644AbiIOQJo (ORCPT ); Thu, 15 Sep 2022 12:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiIOQJm (ORCPT ); Thu, 15 Sep 2022 12:09:42 -0400 Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AA24DECF for ; Thu, 15 Sep 2022 09:09:38 -0700 (PDT) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 700E113E832; Thu, 15 Sep 2022 12:07:07 -0400 (EDT) (envelope-from gitster@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=6ncGciLzs6X7y72Rtb+4Q4eJq PQ8ORAWPEel98TW1Rk=; b=f36BKOGczy0mDmalGvHNdW3dPx91u7gC4fb3LLleM OWWttjpHZhDLUi5hToE4VRl4zZA847asujoQ+kPfdt6iPcMVJhWFqIUTqI7KEdlI ASH0sHYoi3jZz4eNiIQ64ls++w8ibWmwwVRLD2TzimbbBmnCgKOzAP/g7cbWoW9F qo= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 5E71813E831; Thu, 15 Sep 2022 12:07:07 -0400 (EDT) (envelope-from gitster@pobox.com) Received: from pobox.com (unknown [34.83.5.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 72CB113E82F; Thu, 15 Sep 2022 12:07:06 -0400 (EDT) (envelope-from gitster@pobox.com) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH 2/5] environ: explain Boolean environment variables Date: Thu, 15 Sep 2022 09:06:56 -0700 Message-Id: <20220915160659.126441-3-gitster@pobox.com> X-Mailer: git-send-email 2.37.3-780-gd940517dcb In-Reply-To: <20220915160659.126441-1-gitster@pobox.com> References: <20220915160659.126441-1-gitster@pobox.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 71E3C84E-3510-11ED-ADCB-307A8E0A682E-77302942!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Many environment variables use the git_env_bool() API to parse their values, and allow the usual "true/yes/on are true, false/no/off are false. In addition non-zero numbers are true and zero is false. An empty string is also false." set of values. Mark them as such, and consistently say "true" or "false", instead of random mixes of '1', '0', 'yes', 'true', etc. in their description. Signed-off-by: Junio C Hamano --- Documentation/git.txt | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Documentation/git.txt b/Documentation/git.txt index 1b7e37e79a..e2f61a1ec8 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -458,7 +458,12 @@ Please see linkgit:gitglossary[7]. Environment Variables --------------------- -Various Git commands use the following environment variables: +Various Git commands pay attention to environment variables and change +their behavior. The environment variables marked as "Boolean" take +their values the same way as Boolean valued configuration variables, e.g. +"true", "yes", "on" and positive numbers are taken as "yes". + +Here are the variables: The Git Repository ~~~~~~~~~~~~~~~~~~ @@ -530,7 +535,7 @@ double-quotes and respecting backslash escapes. E.g., the value When run in a directory that does not have ".git" repository directory, Git tries to find such a directory in the parent directories to find the top of the working tree, but by default it - does not cross filesystem boundaries. This environment variable + does not cross filesystem boundaries. This Boolean environment variable can be set to true to tell Git not to stop at filesystem boundaries. Like `GIT_CEILING_DIRECTORIES`, this will not affect an explicit repository directory set via `GIT_DIR` or on the @@ -695,7 +700,7 @@ for further details. option in linkgit:git-config[1]. `GIT_TERMINAL_PROMPT`:: - If this environment variable is set to `0`, git will not prompt + If this Boolean environment variable is set to false, git will not prompt on the terminal (e.g., when asking for HTTP authentication). `GIT_CONFIG_GLOBAL`:: @@ -710,10 +715,10 @@ for further details. `GIT_CONFIG_NOSYSTEM`:: Whether to skip reading settings from the system-wide - `$(prefix)/etc/gitconfig` file. This environment variable can + `$(prefix)/etc/gitconfig` file. This Boolean environment variable can be used along with `$HOME` and `$XDG_CONFIG_HOME` to create a predictable environment for a picky script, or you can set it - temporarily to avoid using a buggy `/etc/gitconfig` file while + to true to temporarily avoid using a buggy `/etc/gitconfig` file while waiting for someone with sufficient permissions to fix it. `GIT_FLUSH`:: @@ -857,11 +862,11 @@ for full details. `GIT_TRACE_REDACT`:: By default, when tracing is activated, Git redacts the values of cookies, the "Authorization:" header, the "Proxy-Authorization:" - header and packfile URIs. Set this variable to `0` to prevent this + header and packfile URIs. Set this Boolean environment variable to false to prevent this redaction. `GIT_LITERAL_PATHSPECS`:: - Setting this variable to `1` will cause Git to treat all + Setting this Boolean environment variable to true will cause Git to treat all pathspecs literally, rather than as glob patterns. For example, running `GIT_LITERAL_PATHSPECS=1 git log -- '*.c'` will search for commits that touch the path `*.c`, not any paths that the @@ -870,15 +875,15 @@ for full details. `git ls-tree`, `--raw` diff output, etc). `GIT_GLOB_PATHSPECS`:: - Setting this variable to `1` will cause Git to treat all + Setting this Boolean environment variable to true will cause Git to treat all pathspecs as glob patterns (aka "glob" magic). `GIT_NOGLOB_PATHSPECS`:: - Setting this variable to `1` will cause Git to treat all + Setting this Boolean environment variable to true will cause Git to treat all pathspecs as literal (aka "literal" magic). `GIT_ICASE_PATHSPECS`:: - Setting this variable to `1` will cause Git to treat all + Setting this Boolean environment variable to true will cause Git to treat all pathspecs as case-insensitive. `GIT_REFLOG_ACTION`:: @@ -892,7 +897,7 @@ for full details. end user, to be recorded in the body of the reflog. `GIT_REF_PARANOIA`:: - If set to `0`, ignore broken or badly named refs when iterating + If this Boolean environment variable is set to false, ignore broken or badly named refs when iterating over lists of refs. Normally Git will try to include any such refs, which may cause some operations to fail. This is usually preferable, as potentially destructive operations (e.g., @@ -911,7 +916,7 @@ for full details. `protocol.allow` in linkgit:git-config[1] for more details. `GIT_PROTOCOL_FROM_USER`:: - Set to 0 to prevent protocols used by fetch/push/clone which are + Set this Boolean environment variable to false to prevent protocols used by fetch/push/clone which are configured to the `user` state. This is useful to restrict recursive submodule initialization from an untrusted repository or for programs which feed potentially-untrusted URLS to git commands. See @@ -939,7 +944,7 @@ only affects clones and fetches; it is not yet used for pushes (but may be in the future). `GIT_OPTIONAL_LOCKS`:: - If set to `0`, Git will complete any requested operation without + If this Boolean environment variable is set to false, Git will complete any requested operation without performing any optional sub-operations that require taking a lock. For example, this will prevent `git status` from refreshing the index as a side effect. This is useful for processes running in From patchwork Thu Sep 15 16:06:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Junio C Hamano X-Patchwork-Id: 12977595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33DFFECAAA1 for ; Thu, 15 Sep 2022 16:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229773AbiIOQLT (ORCPT ); Thu, 15 Sep 2022 12:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiIOQLP (ORCPT ); Thu, 15 Sep 2022 12:11:15 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33ED498763 for ; Thu, 15 Sep 2022 09:11:15 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id A88A71B05F1; Thu, 15 Sep 2022 12:07:12 -0400 (EDT) (envelope-from gitster@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=0W+jEkKVwde3PwCB1WKy/Fx3F P7sPXgMr87T+NdenFI=; b=V06qVUfXDYoPGtvTl1xiHQmF4ia3aC70UFQGOr32X Jcp3zRs8Mbgb1yByD2y9hNT23g0MYNiNZV0rqqv+/hwTfiGjB3PKsFv0c7LNVeNp A/zpAvbEwHVe981Mt1GxlRIFjIuKPMC+FehgRFhvWyM824Ea94NQBeFrxeghT0m6 pw= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id A1BDD1B05ED; Thu, 15 Sep 2022 12:07:12 -0400 (EDT) (envelope-from gitster@pobox.com) Received: from pobox.com (unknown [34.83.5.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 3A4401B05C8; Thu, 15 Sep 2022 12:07:08 -0400 (EDT) (envelope-from gitster@pobox.com) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH 3/5] environ: GIT_FLUSH should be made a usual Boolean Date: Thu, 15 Sep 2022 09:06:57 -0700 Message-Id: <20220915160659.126441-4-gitster@pobox.com> X-Mailer: git-send-email 2.37.3-780-gd940517dcb In-Reply-To: <20220915160659.126441-1-gitster@pobox.com> References: <20220915160659.126441-1-gitster@pobox.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 72F169A8-3510-11ED-97B3-B31D44D1D7AA-77302942!pb-smtp21.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org This uses atoi() and checks if the result is not zero to decide what to do. Turning it into the usual Boolean environment variable to use git_env_bool() would not break those who have been using "set to 0, or set to non-zero, that can be parsed with atoi()" values, but will match the expectation of those who expected "true" to mean "yes". Signed-off-by: Junio C Hamano Signed-off-by: René Scharfe --- Documentation/git.txt | 1 + write-or-die.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/git.txt b/Documentation/git.txt index e2f61a1ec8..3d31252bf2 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -722,6 +722,7 @@ for further details. waiting for someone with sufficient permissions to fix it. `GIT_FLUSH`:: +// NEEDSWORK: make it into a usual Boolean environment variable If this environment variable is set to "1", then commands such as 'git blame' (in incremental mode), 'git rev-list', 'git log', 'git check-attr' and 'git check-ignore' will diff --git a/write-or-die.c b/write-or-die.c index c4fd91b5b4..aaa0318e82 100644 --- a/write-or-die.c +++ b/write-or-die.c @@ -23,6 +23,7 @@ void maybe_flush_or_die(FILE *f, const char *desc) if (f == stdout) { if (skip_stdout_flush < 0) { + /* NEEDSWORK: make this a normal Boolean */ cp = getenv("GIT_FLUSH"); if (cp) skip_stdout_flush = (atoi(cp) == 0); From patchwork Thu Sep 15 16:06:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junio C Hamano X-Patchwork-Id: 12977596 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 958A5C6FA89 for ; Thu, 15 Sep 2022 16:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbiIOQMs (ORCPT ); Thu, 15 Sep 2022 12:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiIOQMq (ORCPT ); Thu, 15 Sep 2022 12:12:46 -0400 Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4B3D9A947 for ; Thu, 15 Sep 2022 09:12:45 -0700 (PDT) Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 25EEE15474F; Thu, 15 Sep 2022 12:07:18 -0400 (EDT) (envelope-from gitster@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=ZZWICYlvf1bZMWL1JZ69hByEF JSFJRUU/UFIYrs6SnU=; b=ge9MRdKxL3ZKS0MuUpAPX90zTCYMDvH2UP93jMLId lA+WoSv28yZW6SyW2Fa9ijnh6gpKU+3wniaRhxPvzBAIH4FYBsY+G8mLC5JtbcuH WsBbz5Si6xIaeOF1I600KDJOpcxBwZTML7iaaSed9/qmoIjjSGOL3+HqAiGFdU6m Mo= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 1D5F715474D; Thu, 15 Sep 2022 12:07:18 -0400 (EDT) (envelope-from gitster@pobox.com) Received: from pobox.com (unknown [34.83.5.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 787D715474C; Thu, 15 Sep 2022 12:07:12 -0400 (EDT) (envelope-from gitster@pobox.com) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH 4/5] environ: simplify description of GIT_INDEX_FILE Date: Thu, 15 Sep 2022 09:06:58 -0700 Message-Id: <20220915160659.126441-5-gitster@pobox.com> X-Mailer: git-send-email 2.37.3-780-gd940517dcb In-Reply-To: <20220915160659.126441-1-gitster@pobox.com> References: <20220915160659.126441-1-gitster@pobox.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 757A8CA4-3510-11ED-A60B-2AEEC5D8090B-77302942!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Junio C Hamano --- Documentation/git.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git.txt b/Documentation/git.txt index 3d31252bf2..535ff561c6 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -472,7 +472,7 @@ is worth noting that they may be used/overridden by SCMS sitting above Git so take care if using a foreign front-end. `GIT_INDEX_FILE`:: - This environment allows the specification of an alternate + This environment specifies an alternate index file. If not specified, the default of `$GIT_DIR/index` is used. From patchwork Thu Sep 15 16:06:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junio C Hamano X-Patchwork-Id: 12977593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97C90ECAAA1 for ; Thu, 15 Sep 2022 16:11:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbiIOQLH (ORCPT ); Thu, 15 Sep 2022 12:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiIOQLF (ORCPT ); Thu, 15 Sep 2022 12:11:05 -0400 Received: from pb-smtp20.pobox.com (pb-smtp20.pobox.com [173.228.157.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E4428C015 for ; Thu, 15 Sep 2022 09:11:04 -0700 (PDT) Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id B21A11B864F; Thu, 15 Sep 2022 12:07:24 -0400 (EDT) (envelope-from gitster@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=w04yXk4c6rrb3sbv8pW602JG/ xOqJOwkiCQvuWHOrbM=; b=pNyk360qh6tSV5LVvnapLJUQU5Utvlyalwsl70vsT AkPU0WYtYYlCbMFmqiyEdw7uEwrDNvusE0D+VXl2/F9rKFQjTsx5CRgMLUf6muLG NfSCvMzRWHg/KGwoxWSA2XUtINfW95LdG59f1MY8TUvq8mXbVhLkD+HRgJhmnOjG xc= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 92D721B864E; Thu, 15 Sep 2022 12:07:24 -0400 (EDT) (envelope-from gitster@pobox.com) Received: from pobox.com (unknown [34.83.5.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 176E61B864C; Thu, 15 Sep 2022 12:07:19 -0400 (EDT) (envelope-from gitster@pobox.com) From: Junio C Hamano To: git@vger.kernel.org Subject: [PATCH 5/5] environ: GIT_INDEX_VERSION affects not just a new repository Date: Thu, 15 Sep 2022 09:06:59 -0700 Message-Id: <20220915160659.126441-6-gitster@pobox.com> X-Mailer: git-send-email 2.37.3-780-gd940517dcb In-Reply-To: <20220915160659.126441-1-gitster@pobox.com> References: <20220915160659.126441-1-gitster@pobox.com> MIME-Version: 1.0 X-Pobox-Relay-ID: 796A0FD8-3510-11ED-9995-C2DA088D43B2-77302942!pb-smtp20.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org The variable is consulted whenever we write the index file. Signed-off-by: Junio C Hamano --- Documentation/git.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git.txt b/Documentation/git.txt index 535ff561c6..eb2a17d36b 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -477,8 +477,8 @@ Git so take care if using a foreign front-end. is used. `GIT_INDEX_VERSION`:: - This environment variable allows the specification of an index - version for new repositories. It won't affect existing index + This environment variable specifies what index version is used + when writing the index file out. It won't affect existing index files. By default index file version 2 or 3 is used. See linkgit:git-update-index[1] for more information.