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

Re: [PATCH] gitweb: fix uninitialized variable warning.

From
Junio C Hamano <junkio@cox.net>
Date
Sep 17, 2006, 09:00 UTC
Message-ID
<7vzmcy6f6n.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060916210902.GW17042@admingilde.org>
Martin Waitz <tali@admingilde.org> writes:
Show 12 quoted lines
> @@ -2436,7 +2432,11 @@ sub git_blob {
>  		} else {
>  			die_error(undef, "No file name defined");
>  		}
> +	} elsif ($hash =~ m/^[0-9a-fA-F]{40}$/) {
> +		# blobs defined by non-textual hash id's can be cached
> +		$expires = "+1d";
>  	}
> +
>  	my $have_blame = gitweb_check_feature('blame');
>  	open my $fd, "-|", git_cmd(), "cat-file", "blob", $hash
>  		or die_error(undef, "Couldn't cat $file_name, $hash");
Will apply, but you seem to be out of sync.
Previous: Martin Waitz
Message 2 of 2 in “gitweb: fix uninitialized variable warning.”
  1. gitweb: fix uninitialized variable warning.Martin Waitz, Sep 16, 2006
  2. Junio C HamanoSep 17, 2006

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.