SVN Log Made Easier

Posted by hank, Thu May 03 18:16:00 UTC 2007

So, I got tired of typing in the dates to find a range of log messages. Here’s my solution:


# In ~/.bashrc
svn-log() {
  case $1 in
    yesterday | yes | y) svn log -r {`date -d yesterday +"%Y-%m-%d"`}:{`date +"%Y-%m-%d"`};;
    *) echo "Invalid Option: $1";;
  esac
}

I plan to add more to this later.

Tags:

Comments

  • no avatar available for Sarah Sarah
    May 04, 2007 @ 08:21 PM

    Very cool feature. Great that this service works on any site not just blogs.

  • no avatar available for Brian Brian
    May 08, 2007 @ 11:28 AM

    Wow thanks! I’m a regular reader and enjoy your work. Keep it up!

Have your say

A name is required. You may use Markdown in your comments.