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
Shawn O. Pearce <spearce@spearce.org>
Date
Jun 30, 2007, 07:03 UTC
Message-ID
<20070630070307.GP32223@spearce.org>
In-Reply-To
<7vzm2ic4g8.fsf@assigned-by-dhcp.pobox.com>
Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> "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 ;-)
Or perl.  ;-)

But the patch I just sent is sane. And it all will hopefully go away when Carlos has his C version complete and passing the very large test suite he recently contributed. So not really worth worrying about now that its working properly.

But yea, I changed the script the way I did to keep the number of sed processes per tag equal to what we had before. Its not any better, but its also not any worse and it at least runs on more systems.

-- 
Shawn.
Previous: Junio C Hamano
Message 3 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.