Git development
 help / color / mirror / Atom feed
* cg-prev and cg-next
@ 2005-10-13 14:38 Zack Brown
  0 siblings, 0 replies; only message in thread
From: Zack Brown @ 2005-10-13 14:38 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-13 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-13 14:38 cg-prev and cg-next Zack Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox