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

Re: [PATCH] cvsexportcommit: add some examples to the documentation

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Jan 30, 2006, 06:25 UTC
Message-ID
<86slr6i64r.fsf@blue.stonehenge.com>
In-Reply-To
<11386015522537-git-send-email-martin@catalyst.net.nz>
>>>>> "Martin" == Martin Langhoff <martin@catalyst.net.nz> writes:
Martin> +$ git-cherry cvshead myhead | grep '^+' | sed 's/^+ //' | xargs -l1 git-cvsexportcommit -c -p -v
My idiom for that grep/sed would be:
  ... | sed -n 's/^+ //p' | ...

Then the grep is not needed, because you're printing only the ones that you've also modified in a useful way.

Yes, I did a heckuva lot more shell programming long before Perl existed. :)
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Previous: Martin Langhoff
Message 2 of 2 in “cvsexportcommit: add some examples to the documentation”
  1. cvsexportcommit: add some examples to the documentationMartin Langhoff, Jan 30, 2006
  2. Randal L. SchwartzJan 30, 2006

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.