public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: merlyn@stonehenge•com (Randal L. Schwartz)
To: Martin Langhoff <martin@catalyst•net.nz>
Cc: git@vger•kernel.org
Subject: Re: [PATCH] cvsexportcommit: add some examples to the documentation
Date: 29 Jan 2006 22:25:56 -0800	[thread overview]
Message-ID: <86slr6i64r.fsf@blue.stonehenge.com> (raw)
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!

  reply	other threads:[~2006-01-30  6:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-30  6:12 [PATCH] cvsexportcommit: add some examples to the documentation Martin Langhoff
2006-01-30  6:25 ` Randal L. Schwartz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-30  6:29 Martin Langhoff
2006-01-30  6:30 ` Randal L. Schwartz
2006-01-30  6:34 Martin Langhoff
2006-01-30  7:36 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86slr6i64r.fsf@blue.stonehenge.com \
    --to=merlyn@stonehenge$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=martin@catalyst$(echo .)net.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox