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

[PATCH v2 2/2] git-cat-file.txt: remove references to "sha1"

From
Denton Liu <liu.denton@gmail.com>
Date
Mar 3, 2021, 09:21 UTC
Message-ID
<1b57fdad9767a3b63c359e1663e5a045b4964320.1614763281.git.liu.denton@gmail.com>
In-Reply-To
<cover.1614763281.git.liu.denton@gmail.com>

As part of the hash-transition, git can operate on more than just SHA-1 repositories. Replace "sha1"-specific documentation with hash-agnostic terminology.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
 Documentation/git-cat-file.txt | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt
index a1c37a9e81..4eb0421b3f 100644
--- a/Documentation/git-cat-file.txt
+++ b/Documentation/git-cat-file.txt
@@ -200,7 +200,7 @@ object, with placeholders of the form `%(atom)` expanded, followed by a
 newline. The available atoms are:
 
 `objectname`::
-	The 40-hex object name of the object.
+	The full hex representation of the object name.
 
 `objecttype`::
 	The type of the object (the same as `cat-file -t` reports).
@@ -215,8 +215,9 @@ newline. The available atoms are:
 
 `deltabase`::
 	If the object is stored as a delta on-disk, this expands to the
-	40-hex sha1 of the delta base object. Otherwise, expands to the
-	null sha1 (40 zeroes). See `CAVEATS` below.
+	full hex representation of the delta base object name.
+	Otherwise, expands to the null OID (all zeroes). See `CAVEATS`
+	below.
 
 `rest`::
 	If this atom is used in the output string, input lines are split
@@ -235,14 +236,14 @@ newline.
 For example, `--batch` without a custom format would produce:
 
 ------------
-<sha1> SP <type> SP <size> LF
+<oid> SP <type> SP <size> LF
 <contents> LF
 ------------
 
 Whereas `--batch-check='%(objectname) %(objecttype)'` would produce:
 
 ------------
-<sha1> SP <type> LF
+<oid> SP <type> LF
 ------------
 
 If a name is specified on stdin that cannot be resolved to an object in
-- 
2.30.1.823.g0a3b79fd18
Previous: Denton LiuNext: Denton Liu
Message 19 of 21 in “docs: misc cleanup”
  1. 0/3 docs: misc cleanupDenton Liu, Feb 23, 2021
  2. 1/3 i18n.txt: camel case and monospace "i18n.commitEncoding"Denton Liu, Feb 23, 2021
  3. Junio C HamanoFeb 23, 2021
  4. i18n.txt: camel case and monospace "i18n.commitEncoding"Junio C Hamano, Feb 23, 2021
  5. Eric SunshineFeb 23, 2021
  6. Junio C HamanoFeb 23, 2021
  7. 0/3 doc: spell configuration variable names in camelCaseJunio C Hamano, Feb 24, 2021
  8. 1/3 i18n.txt: camel case and monospace "i18n.commitEncoding"Junio C Hamano, Feb 24, 2021
  9. 2/3 blame-options.txt: camelcase blame.blankBoundaryJunio C Hamano, Feb 24, 2021
  10. 3/3 index-format doc: camelCase core.excludesFileJunio C Hamano, Feb 24, 2021
  11. 2/3 git-cat-file.txt: monospace args and placeholdersDenton Liu, Feb 23, 2021
  12. Eric SunshineFeb 23, 2021
  13. 2/3 git-cat-file.txt: monospace args, placeholders and filenamesDenton Liu, Feb 23, 2021
  14. 3/3 git-cat-file.txt: remove references to "sha1"Denton Liu, Feb 23, 2021
  15. Eric SunshineFeb 23, 2021
  16. git-cat-file.txt: remove references to "sha1"Denton Liu, Feb 23, 2021
  17. Junio C HamanoFeb 23, 2021
  18. 0/2 git-cat-file.txt: doc cleanupDenton Liu, Mar 3, 2021
  19. 2/2 git-cat-file.txt: remove references to "sha1"Denton Liu, Mar 3, 2021
  20. 1/2 git-cat-file.txt: monospace args, placeholders and filenamesDenton Liu, Mar 3, 2021
  21. Junio C HamanoMar 4, 2021

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.