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

Re: [PATCH] Correct usages of sed in git-tag for Mac OS X

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 30, 2007, 07:00 UTC
Message-ID
<7vzm2ic4g8.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<20070630064247.GA18041@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
> These major Git functions are much more important than
> saving two or three lines of a simple sed script.

The size of the script does not worry me. The number of sed processes originally did, but the old code also had two invocations of sed, and I do not think you can implement the "strip the header, and then emit ${LINES} lines" behaviour without doing them in separate sed anyway, so I think this is fine. But it makes me wonder why we are not using awk ;-)

Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 2 of 3 in “Correct usages of sed in git-tag for Mac OS X”
  1. Correct usages of sed in git-tag for Mac OS XShawn O. Pearce, Jun 30, 2007
  2. Junio C HamanoJun 30, 2007
  3. Shawn O. PearceJun 30, 2007

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.