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

Re: [PATCH 2/3] hash-object doc: elaborate on -w and --literally promises

From
Junio C Hamano <gitster@pobox.com>
Date
May 28, 2019, 16:49 UTC
Message-ID
<xmqqd0k24j7s.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190520215312.10363-3-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 8 quoted lines
> Clarify the hash-object docs to explicitly note that the --literally
> option guarantees that a loose object will be written, but that a
> normal -w ("write") invocation doesn't.
>
> At first I thought talking about "loose object" in the docs was a
> mistake in 83115ac4a8 ("git-hash-object.txt: document --literally
> option", 2015-05-04), but as is clear from 5ba9a93b39 ("hash-object:
> add --literally option", 2014-09-11) this was intended all along.

I have to admit that this "loose only" was the doing of my defeatism. IOW, I was utterly pessimistic that I would be able to add more types (and more importantly, unbounded number of random types) of objects in the packstream.

So, "loose object" limitation is a practical one for those of us who cannot think of a reasonable way to cram arbitrary number of random new types into just 3 bits of the "type" bitfield, and not inherent to the "hash-object --literally" command.

So I am very happy to see the first hunk of this patch, but I doubt there is much value in the last sentence the second hunk adds.

Thanks.
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 10 of 12 in “hash-object doc: small fixes”
  1. 0/3 hash-object doc: small fixesÆvar Arnfjörð Bjarmason, May 20, 2019
  2. 1/3 hash-object doc: stop mentioning git-cvsimportÆvar Arnfjörð Bjarmason, May 20, 2019
  3. Jeff KingMay 22, 2019
  4. 2/3 hash-object doc: elaborate on -w and --literally promisesÆvar Arnfjörð Bjarmason, May 20, 2019
  5. Jeff KingMay 22, 2019
  6. Jakub NarebskiMay 24, 2019
  7. Ævar Arnfjörð BjarmasonMay 24, 2019
  8. Jeff KingMay 28, 2019
  9. Junio C HamanoMay 28, 2019
  10. Junio C HamanoMay 28, 2019
  11. 3/3 hash-object doc: point to ls-files and rev-parseÆvar Arnfjörð Bjarmason, May 20, 2019
  12. Jeff KingMay 22, 2019

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.