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

Re: What's cooking in git.git (Mar 2017, #01; Wed, 1)

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 1, 2017, 23:08 UTC
Message-ID
<xmqqefygegth.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<52f043cc-7b39-5ab7-bcdc-894aeb402c12@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 13 quoted lines
> Am 01.03.2017 um 23:35 schrieb Junio C Hamano:
>> * rs/log-email-subject (2017-03-01) 2 commits
>>  - pretty: use fmt_output_email_subject()
>>  - log-tree: factor out fmt_output_email_subject()
>> 
>>  Code clean-up.
>> 
>>  Will merge to 'next'.
>
> Could you please squash this in?  We only use a single context (as
> opposed to an array), so it doesn't have to be especially compact,
> and using a bitfield slows down half of the tests in p4000 by 3%
> for me.

I thought I saw the keyword "bitfield" to the solution for that 3% somewhere in the thread and forgot when I updated the "What's cooking" report.

Will do.  Thanks for being careful.  
Show 18 quoted lines
>
> ---
>  commit.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/commit.h b/commit.h
> index 459daef94a..528272ac9b 100644
> --- a/commit.h
> +++ b/commit.h
> @@ -154,7 +154,7 @@ struct pretty_print_context {
>  	int preserve_subject;
>  	struct date_mode date_mode;
>  	unsigned date_mode_explicit:1;
> -	unsigned print_email_subject:1;
> +	int print_email_subject;
>  	int expand_tabs_in_log;
>  	int need_8bit_cte;
>  	char *notes_message;
Previous: René Scharfe
Message 3 of 3 in “What's cooking in git.git (Mar 2017, #01; Wed, 1)”
  1. Junio C HamanoMar 1, 2017
  2. René ScharfeMar 1, 2017
  3. Junio C HamanoMar 1, 2017

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.