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

[PATCH v2 2/3] fetch-pack: document only_packfile in get_pack()

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Aug 17, 2020, 19:48 UTC
Message-ID
<eae9024f73e67d1d5fc60c589ebb2106faefcb56.1597693540.git.jonathantanmy@google.com>
In-Reply-To
<cover.1597693540.git.jonathantanmy@google.com>

dd4b732df7 ("upload-pack: send part of packfile response as uri", 2020-06-10) added the "only_packfile" parameter to get_pack() but did not document it. Add documentation.

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
---
 fetch-pack.c | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/fetch-pack.c b/fetch-pack.c
index 7f20eca4f8..289121038e 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -794,6 +794,10 @@ static void write_promisor_file(const char *keep_name,
 	strbuf_release(&promisor_name);
 }
 
+/*
+ * Pass 1 as "only_packfile" if the pack received is the only pack in this
+ * fetch request (that is, if there were no packfile URIs provided).
+ */
 static int get_pack(struct fetch_pack_args *args,
 		    int xd[2], struct string_list *pack_lockfiles,
 		    int only_packfile,
-- 
2.28.0.220.ged08abb693-goog
Previous: Jonathan TanNext: Jonathan Tan
Message 7 of 8 in “fetch-pack: make packfile URIs work with transfer.fsckobjects”
  1. fetch-pack: make packfile URIs work with transfer.fsckobjectsJonathan Tan, Aug 14, 2020
  2. Junio C HamanoAug 14, 2020
  3. 0/3 make packfile URIs work with transfer.fsckobjectsJonathan Tan, Aug 17, 2020
  4. 3/3 fetch-pack: make packfile URIs work with transfer.fsckobjectsJonathan Tan, Aug 17, 2020
  5. Eric SunshineAug 17, 2020
  6. Jonathan TanAug 17, 2020
  7. 2/3 fetch-pack: document only_packfile in get_pack()Jonathan Tan, Aug 17, 2020
  8. 1/3 (various): document from_promisor parameterJonathan Tan, Aug 17, 2020

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.