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

Re: [PATCH 1/2] clone: remove fetch_if_missing=0

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 13, 2019, 02:50 UTC
Message-ID
<xmqqtv78bibc.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<84d8cee52e7c1dc030826c8caa0e107f80783b9c.1573604516.git.jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
Show 11 quoted lines
> diff --git a/connected.c b/connected.c
> index 36c4e5dedb..c337f5f7f4 100644
> --- a/connected.c
> +++ b/connected.c
> @@ -62,7 +62,8 @@ int check_connected(oid_iterate_fn fn, void *cb_data,
>  		 * received the objects pointed to by each wanted ref.
>  		 */
>  		do {
> -			if (!repo_has_object_file(the_repository, &oid))
> +			if (!repo_has_object_file_with_flags(the_repository, &oid,
> +							     OBJECT_INFO_SKIP_FETCH_OBJECT))

Wow, good find. Really good find. I guess the exercise to see if we can get rid of (or at least use less of) the big knob was a good idea.

Thanks, will queue.
>  				return 1;
>  		} while (!fn(cb_data, &oid));
>  		return 0;
Previous: Jonathan TanNext: Jonathan Tan
Message 3 of 5 in “More fetch_if_missing=0 removal”
  1. 0/2 More fetch_if_missing=0 removalJonathan Tan, Nov 13, 2019
  2. 1/2 clone: remove fetch_if_missing=0Jonathan Tan, Nov 13, 2019
  3. Junio C HamanoNov 13, 2019
  4. 2/2 promisor-remote: remove fetch_if_missing=0Jonathan Tan, Nov 13, 2019
  5. Junio C HamanoNov 13, 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.