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

Re: [PATCH] filter-branch: Grok special characters in tag names

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 21, 2008, 20:26 UTC
Message-ID
<7v3akyi07f.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<NWVPkDIELqWBHTU58gfzDqO8HR575ZDJVO2pYdPMtqv9aBLzMLvyZg@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
> Junio complained that my initial version of this was fragile which has
> similarities with the above. Initially, I was blindly changing the first line
> to contain "object...", second line to "type...", etc.

Was it more about not limiting the munging to only the header part? In any case, I think what Hannes has in the patch is fine (although I did not look the lines that follow outside the context).

> Would something like the following be equivalent _and_ clearer? Emphasis
> on "and" because both are necessary, not because I strongly feel it to
> be so.

I was bitten by a/i/c followed by literal text that behave differently with various implementations of sed, and learned to stay away from the construct long time ago. Things might have gotten better these days, but old habit and gut-reaction is hard to shake off.

Previous: Brandon CaseyNext: Brandon Casey
Message 5 of 6 in “filter-branch: Grok special characters in tag names”
  1. filter-branch: Grok special characters in tag namesJohannes Sixt, Aug 21, 2008
  2. Brandon CaseyAug 21, 2008
  3. Johannes SixtAug 21, 2008
  4. Brandon CaseyAug 21, 2008
  5. Junio C HamanoAug 21, 2008
  6. Brandon CaseyAug 21, 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.