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

Re: [PATCH] git-config: respect other options after -l, most notably --file

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 9, 2007, 13:15 UTC
Message-ID
<Pine.LNX.4.64.0710091414590.4174@racer.site>
In-Reply-To
<20071009125024.1259.qmail@d8e601127fe8d0.315fe32.mid.smarden.org>
Hi,
On Tue, 9 Oct 2007, Gerrit Pape wrote:
Show 9 quoted lines
> @@ -234,6 +235,8 @@ int cmd_config(int argc, const char **argv, const char *prefix)
>  		argv++;
>  	}
>  
> +	if (show_all)
> +		return git_config(show_all_config);
>  	switch (argc) {
>  	case 2:
>  		return get_value(argv[1], NULL);

Shouldn't this somehow check if argc == 1 when show_all is set, and die otherwise?

Ciao, Dscho

Previous: Gerrit PapeNext: Frank Lichtenheld
Message 2 of 4 in “git-config: respect other options after -l, most notably --file”
  1. git-config: respect other options after -l, most notably --fileGerrit Pape, Oct 9, 2007
  2. Johannes SchindelinOct 9, 2007
  3. Frank LichtenheldOct 9, 2007
  4. git-config: respect other options after -l, most notably --fileGerrit Pape, Oct 12, 2007

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.