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

Re: [PATCH] notes: avoid empty line in template

From
Taylor Blau <me@ttaylorr.com>
Date
Nov 16, 2022, 19:57 UTC
Message-ID
<Y3VAxO+EQVXVu92z@nand.local>
In-Reply-To
<Y3Uxh25Gh5fPQrMq@coredump.intra.peff.net>
On Wed, Nov 16, 2022 at 01:52:55PM -0500, Jeff King wrote:
Show 13 quoted lines
> > diff --git a/builtin/notes.c b/builtin/notes.c
> > index be51f69225..80d9dfd25c 100644
> > --- a/builtin/notes.c
> > +++ b/builtin/notes.c
> > @@ -181,7 +181,7 @@ static void prepare_note_data(const struct object_id *object, struct note_data *
> >  		strbuf_addch(&buf, '\n');
> >  		strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
> >  		strbuf_add_commented_lines(&buf, _(note_template), strlen(_(note_template)));
> > -		strbuf_addch(&buf, '\n');
> > +		strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
>
> And the patch looks obviously good. The irony is the version two lines
> above which does it correctly. ;)
Thanks, both. ;-).

Thanks, Taylor

Previous: Jeff KingNext: Ævar Arnfjörð Bjarmason
Message 3 of 6 in “notes: avoid empty line in template”
  1. notes: avoid empty line in templateMichael J Gruber, Nov 16, 2022
  2. Jeff KingNov 16, 2022
  3. Taylor BlauNov 16, 2022
  4. Ævar Arnfjörð BjarmasonNov 17, 2022
  5. Michael J GruberNov 17, 2022
  6. Jeff KingNov 17, 2022

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.