Git development
 help / color / mirror / Atom feed
From: Zack Brown <zbrown@tumblerings.org>
To: Git Mailing List <git@vger.kernel.org>
Subject: cg-prev and cg-next
Date: Thu, 13 Oct 2005 07:38:52 -0700	[thread overview]
Message-ID: <20051013143852.GA5057@tumblerings.org> (raw)

Hi folks,

Sometimes I just want to surf through a project's history, getting a sense of
where I was over time. So I wrote these short scripts to let me do that easily:

cg-prev:

    cg-seek `cg-log | grep "^commit " | head -n 2 | tail -n 1 | cut -d ' ' -f 2`


cg-next:

    CURRENT=`cg-log | grep "^commit " | head -n 1`       
    cg-seek > /dev/null
    cg-seek `cg-log | grep "^commit " | grep -B 1 "^$CURRENT" | head -n 1 | cut -d ' ' -f 2`

Even better, I guess would be to be able to do something like this:

$ cg-seek next
$ cg-seek prev

and have it do the right thing.

Be well,
Zack

-- 
Zack Brown

                 reply	other threads:[~2005-10-13 14:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20051013143852.GA5057@tumblerings.org \
    --to=zbrown@tumblerings.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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