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

[PATCH] doc: pack-objects: clarify --missing option

From
Han Young <hanyang.tony@bytedance.com>
Date
Aug 8, 2024, 06:21 UTC
Message-ID
<20240808062120.34629-1-hanyang.tony@bytedance.com>

Since ee47243d76 (pack-objects: no fetch when allow-{any,promisor}, 2020-08-05), we mention that --missing=allow-any and --missing=allow-promisor do not fetch missing objects. But this is only true for missing objects that are discovered during object traversal. We will still fetch missing objects read from stdin.

Signed-off-by: Han Young <hanyang.tony@bytedance.com>
---
objects read from stdin ignore --missing option, if the repo has
promisor remote, we will try to fetch missing objects. Even if
the missing objects is not "EXPECTED promisor missing objects".
"--missing=allow-promisor" will not raise an error on such cases.
 Documentation/git-pack-objects.txt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/Documentation/git-pack-objects.txt b/Documentation/git-pack-objects.txt
index e32404c6aa..0c1f86dabe 100644
--- a/Documentation/git-pack-objects.txt
+++ b/Documentation/git-pack-objects.txt
@@ -313,13 +313,14 @@ attempt to fetch missing objects will be made before declaring them missing.
 This is the default action.
 +
 The form '--missing=allow-any' will allow object traversal to continue
-if a missing object is encountered.  No fetch of a missing object will occur.
-Missing objects will silently be omitted from the results.
+if a missing object is encountered.  No fetch of a missing object will occur
+during object traversal. Missing objects will silently be omitted from the
+results.
 +
 The form '--missing=allow-promisor' is like 'allow-any', but will only
 allow object traversal to continue for EXPECTED promisor missing objects.
-No fetch of a missing object will occur.  An unexpected missing object will
-raise an error.
+No fetch of a missing object will occur during object traversal.
+An unexpected missing object will raise an error.
 
 --exclude-promisor-objects::
 	Omit objects that are known to be in the promisor remote.  (This
-- 
2.45.2
Next: Patrick Steinhardt
Message 1 of 2 in “doc: pack-objects: clarify --missing option”
  1. doc: pack-objects: clarify --missing optionHan Young, Aug 8, 2024
  2. Patrick SteinhardtAug 8, 2024

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.