SVN Log Made Easier

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.



Comments

  1. Sarah

    May 3, 2007 at 6:16 PM

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


  2. Brian

    May 3, 2007 at 6:16 PM

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