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

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

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 23, 2021, 06:48 UTC
Message-ID
<CAPig+cSy3M4Lp6ej5ca47GzAAOPz2Q9p6cSZWsLs9STu-KauSA@mail.gmail.com>
In-Reply-To
<a24cbbe955f45072ffa88ca16f84e2443720a38f.1614062288.git.liu.denton@gmail.com>
On Tue, Feb 23, 2021 at 1:41 AM Denton Liu <liu.denton@gmail.com> wrote:
Show 11 quoted lines
> 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>
> ---
> diff --git 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
>  `objectname`::
> -       The 40-hex object name of the object.
> +       The full hex representation of the object.

I find this new terminology confusing and ambiguous. To me, this seems to be saying that it is a hex representation of the entire object rather than a hex representation of the hash of the object. Perhaps say either "hex representation of the hash of the object" or "hex representation of the object ID"?

Show 7 quoted lines
> @@ -215,8 +215,8 @@ 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. Otherwise, expands to the
> +       null OID (all zeroes). See `CAVEATS` below.

Same issue. "hex representation of the delta base object" sounds misleading. Should probably mention "hash of the" in there somewhere or something.

Previous: Denton LiuNext: Denton Liu
Message 15 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.