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

Re: [PATCH] Show URL in the "Getting <foo> list" http-fetch messages

From
Petr Baudis <pasky@suse.cz>
Date
Nov 12, 2005, 00:58 UTC
Message-ID
<20051112005803.GZ30496@pasky.or.cz>
In-Reply-To
<20051112004958.21857.95728.stgit@machine.or.cz>

Dear diary, on Sat, Nov 12, 2005 at 01:49:59AM CET, I got a letter where Petr Baudis <pasky@suse.cz> said that...

Show 28 quoted lines
> Signed-off-by: Petr Baudis <pasky@suse.cz>
> ---
> 
>  http-fetch.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/http-fetch.c b/http-fetch.c
> index e7655d1..e6e7df6 100644
> --- a/http-fetch.c
> +++ b/http-fetch.c
> @@ -795,7 +795,7 @@ static int fetch_alternates(char *base)
>  	buffer.buffer = data;
>  
>  	if (get_verbosely)
> -		fprintf(stderr, "Getting alternates list\n");
> +		fprintf(stderr, "Getting alternates list for %s\n", base);
>  	
>  	url = xmalloc(strlen(base) + 31);
>  	sprintf(url, "%s/objects/info/http-alternates", base);
> @@ -918,7 +918,7 @@ static int fetch_indices(struct alt_base
>  	buffer.buffer = data;
>  
>  	if (get_verbosely)
> -		fprintf(stderr, "Getting pack list\n");
> +		fprintf(stderr, "Getting pack list for %s\n", repo->base);
>  	
>  	url = xmalloc(strlen(repo->base) + 21);
>  	sprintf(url, "%s/objects/info/packs", repo->base);

By the way, this is only a pathetic remnant of my brave effort to get rid of seeing the "Getting alternates list" message on the same repository 20 times now since the parallel fetching got introduced. I know how to do silence the messages, but doing the _fetching_ itself seems as downright stupid thing in the first place.

Therefore, can I somehow stall fetching of an object? The idea is:
	I want to check the alternates list!
	I don't have it yet...
	...but a request for it is already queued. Ok, I'll wait.
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Petr BaudisNext: Junio C Hamano
Message 2 of 6 in “Show URL in the "Getting <foo> list" http-fetch messages”
  1. Show URL in the "Getting <foo> list" http-fetch messagesPetr Baudis, Nov 12, 2005
  2. Petr BaudisNov 12, 2005
  3. Junio C HamanoNov 12, 2005
  4. Nick HengeveldNov 12, 2005
  5. Nick HengeveldNov 14, 2005
  6. Junio C HamanoNov 14, 2005

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.