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

Re: [PATCH] mktree: do not check type of remote objects

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 21, 2022, 16:51 UTC
Message-ID
<xmqqwndagdu3.fsf@gitster.g>
In-Reply-To
<748f39a9-65aa-2110-cf92-7ddf81b5f507@roku.com>
Richard Oliver <roliver@roku.com> writes:
Show 6 quoted lines
> As a side note, do you think we need to re-work some uses of the word
> 'missing' in the documentation? Some uses of the word, such as in
> mktree, predate the concept of promisor remotes. The partial-clone.txt
> documentation differentiates between missing "due to a partial clone
> or fetch" and missing "due to repository corruption".  Would making
> such a distinction elsewhere be useful?

I do agree with that direction. Back when the world was simpler, there were just "we have the object" and "we ought to have the object but we do not see it", the latter of which was a clear repository corruption. There was no third choice.

With the lazy/partial clone stuff, it is not a corrupted repository anymore when certain objects that are reachable during traversal is missing (this is slightly different from a shallow clone in that a shallow history makes the traversal stop early, so at least objects in a shallow clone that are reachable during traversal must exist).

So, yes, I think the distinction between "missing but shouldn't be" and "missing by design" is a good thing to keep in mind.

Thanks.
Previous: Richard OliverNext: Junio C Hamano
Message 19 of 20 in “mktree: learn about promised objects”
  1. mktree: learn about promised objectsRichard Oliver, Jun 14, 2022
  2. Derrick StoleeJun 14, 2022
  3. Richard OliverJun 14, 2022
  4. Derrick StoleeJun 14, 2022
  5. Taylor BlauJun 15, 2022
  6. Jeff KingJun 15, 2022
  7. Richard OliverJun 15, 2022
  8. Derrick StoleeJun 15, 2022
  9. Jeff KingJun 16, 2022
  10. is_promisor_object(): walk promisor packs in pack-orderJeff King, Jun 16, 2022
  11. Derrick StoleeJun 16, 2022
  12. Jonathan TanJun 17, 2022
  13. Derrick StoleeJun 16, 2022
  14. Junio C HamanoJun 15, 2022
  15. Jeff KingJun 16, 2022
  16. mktree: Make '--missing' behave as documentedRichard Oliver, Jun 16, 2022
  17. Junio C HamanoJun 16, 2022
  18. mktree: do not check type of remote objectsRichard Oliver, Jun 21, 2022
  19. Junio C HamanoJun 21, 2022
  20. Junio C HamanoJun 21, 2022

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.