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

Re: [PATCH] git-send-email: Add --threaded option

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 27, 2007, 06:03 UTC
Message-ID
<7vmyymq6hj.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<70B55529-9309-46D4-89A0-3FFD4D4E0660@apple.com>
Adam Roben <aroben@apple.com> writes:
Show 13 quoted lines
> On Jun 26, 2007, at 10:21 PM, Junio C Hamano wrote:
> ...
>>> +my ($threaded, $chain_reply_to, $quiet, $suppress_from,
>>> $no_signed_off_cc,
>>> +	$dry_run) = (1, 1, 0, 0, 0, 0);
>>
>> While we are at it, you might want to make everything other than
>> quiet and dry_run overridable the same way.
>
>    --[no-]chain-reply-to, --suppress-from and --no-signed-off-cc
> already exist, so do you mean that we should support --no-suppress-
> from and --signed-off-cc (i.e., the negations) as well? Or that we
> should have equivalent config settings for these? Or both?
Sorry for being unclear; I was talking about the config.

Also "my ($a, $b, $c, ...) = ($defA, $defB, $defC, ...)" gets extremely hard to read when the list grows longer. I was hoping that when adding entries to %config_settings array, you would do something like:

	my %config_settings = (
                threaded => [\threaded, 1],
                chainreplyto => [\chain_reply_to, 1],
		...
	);
	while (my ($var, $data) = each %config_settings) {
        	my $config = $repo_config_bool("sendemail.$var);
		${$data->[0]} = (defined $config) ? $config : $data->[1];
	}
Previous: Adam Roben
Message 4 of 4 in “git-send-email: Add --threaded option”
  1. git-send-email: Add --threaded optionAdam Roben, Jun 26, 2007
  2. Junio C HamanoJun 27, 2007
  3. Adam RobenJun 27, 2007
  4. Junio C HamanoJun 27, 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.