git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/1] Documentation: correct hash environment variable

From
Toon Claes <toon@iotcl.com>
Date
May 25, 2020, 14:41 UTC
Message-ID
<20200525144138.1624272-2-toon@iotcl.com>
In-Reply-To
<20200525144138.1624272-1-toon@iotcl.com>

To set the default hash algorithm you can set the `GIT_DEFAULT_HASH` environment variable. In the documentation this variable was named `GIT_DEFAULT_HASH_ALGORITHM`, which was incorrect.

Signed-off-by: Toon Claes <toon@iotcl.com>
---
 Documentation/git.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 9d6769e95a..12890841c4 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -493,7 +493,7 @@ double-quotes and respecting backslash escapes. E.g., the value
 	details. This variable has lower precedence than other path
 	variables such as GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY...
 
-`GIT_DEFAULT_HASH_ALGORITHM`::
+`GIT_DEFAULT_HASH`::
 	If this variable is set, the default hash algorithm for new
 	repositories will be set to this value. This value is currently
 	ignored when cloning; the setting of the remote repository
-- 
2.27.0.rc1.72.g3440a8306a
Previous: Toon ClaesNext: Martin Ågren
Message 2 of 4 in “Documentation fix related to hash algorithm”
  1. 0/1 Documentation fix related to hash algorithmToon Claes, May 25, 2020
  2. 1/1 Documentation: correct hash environment variableToon Claes, May 25, 2020
  3. Martin ÅgrenMay 25, 2020
  4. brian m. carlsonMay 25, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.