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

Re: [PATCH] sequencer: make it clearer that commit descriptions are just comments

From
Elijah Newren <newren@gmail.com>
Date
May 16, 2025, 15:22 UTC
Message-ID
<CABPp-BFKrgB5_rMX=i0t1Dvj2XwEoCS71+QAFY=hcTnyDnOr7Q@mail.gmail.com>
In-Reply-To
<ABFDED43-3AC7-455E-9736-A8D9AC0F3A40@gmail.com>
On Fri, May 16, 2025 at 7:07 AM Ben Knoble <ben.knoble@gmail.com> wrote:
Show 13 quoted lines
>
> > Le 15 mai 2025 à 11:56, Junio C Hamano <gitster@pobox.com> a écrit :
> >
> > Phillip Wood <phillip.wood123@gmail.com> writes:
> >
> >>> -        grep -v -e \# -e ^$ work >patches &&
> >>> +        sed -e s/#.*// work | grep -v ^$ >patches &&
> >>
> >> I think we could just use 'sed -n "!/^#/p work >patches &&" here
> >
> > Or even "sed -e '/^#/d' -e '/^$/d'" ?
>
> I’m probably missing something obvious, but why step away from "grep -v -e ^\# -e ^$"? A one character change from the original ;) If we must go with Sed, I’d prefer Junio’s construct (combining, with obvious semantics via "d") over the sed|grep pipeline.

:-) I made this exact change to make it be a one-character modification of the original, and pushed it up yesterday (https://github.com/gitgitgadget/git/pull/1923); I just hadn't /submit'ted it to the list yet. I agree that every suggestion folks have made so far is better than my original proposal, but I kind of prefer this latest suggestion of just making a one-character modification. So, unless folks object, I'll indeed go with this one.

Previous: Ben KnobleNext: Junio C Hamano
Message 8 of 11 in “sequencer: make it clearer that commit descriptions are just comments”
  1. sequencer: make it clearer that commit descriptions are just commentsElijah Newren via GitGitGadget, May 15, 2025
  2. RetoMay 15, 2025
  3. Phillip WoodMay 15, 2025
  4. Phillip WoodMay 15, 2025
  5. Phillip WoodMay 15, 2025
  6. Junio C HamanoMay 15, 2025
  7. Ben KnobleMay 16, 2025
  8. Elijah NewrenMay 16, 2025
  9. Junio C HamanoMay 16, 2025
  10. Junio C HamanoMay 15, 2025
  11. sequencer: make it clearer that commit descriptions are just commentsElijah Newren via GitGitGadget, May 16, 2025

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.