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

Re: [PATCH] generate-cmdlist.sh: avoid selecting synopsis at wrong place

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Sep 18, 2008, 16:20 UTC
Message-ID
<fcaeb9bf0809180920v33af3910h7ce56aec1db09a54@mail.gmail.com>
In-Reply-To
<adf1fd3d0809180909o2043ae36vda7ae2370f900169@mail.gmail.com>
On 9/18/08, Santi Béjar <santi@agolina.net> wrote:
Show 9 quoted lines
> On Thu, Sep 18, 2008 at 6:01 PM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
>  > In "common" man pages there is luckily no "NAME" anywhere except at
>  > beginning of documents. If there is another "NAME", sed could
>  > mis-select it and lead to common-cmds.h corruption. So better nail it
>  > at beginning of line, which would reduce corruption chance.
>  >
>
>
> You could narrow it even more with /^NAME$/

That may miss "^NAME $", which is hard to recognize by eyes, although I'm pretty sure there is no trailing spaces in git. It's up to Junio to decide how strict he wants.

-- 
Duy
Previous: Santi Béjar
Message 3 of 3 in “generate-cmdlist.sh: avoid selecting synopsis at wrong place”
  1. generate-cmdlist.sh: avoid selecting synopsis at wrong placeNguyễn Thái Ngọc Duy, Sep 18, 2008
  2. Santi BéjarSep 18, 2008
  3. Nguyen Thai Ngoc DuySep 18, 2008

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.