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

Re: [PATCH 1/2] Add test script for git-stripspace.

From
CRCarlos Rica <jasampler@gmail.com>
Date
Jun 27, 2007, 05:54 UTC
Message-ID
<1b46aba20706262254t356fab01x5282cdd5942c4b79@mail.gmail.com>
In-Reply-To
<7v8xa6ruu4.fsf@assigned-by-dhcp.pobox.com>
2007/6/27, Junio C Hamano <gitster@pobox.com>:
> Thanks.  That's extensive set of tests for a little utility.

I hope not being overtesting the program. In order to reuse the function that does this job from the builtins, perhaps we need another implementation doing the same in a memory buffer instead a file stream. The tests save the need to feed manually the program in this development, and clarify the expected behaviour for the utility.

> > new file mode 100644
> 100755?
> > +    cat expect | git-stripspace >actual &&
> Please don't cat a single file into a pipeline.
>         git-stripspace <actual >expect
Thank you for your corrections. I Will resend it with those fixed.
Previous: Junio C Hamano
Message 3 of 3 in “Add test script for git-stripspace.”
  1. 1/2 Add test script for git-stripspace.Carlos Rica, Jun 25, 2007
  2. Junio C HamanoJun 27, 2007
  3. Carlos RicaJun 27, 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.