Rich Text

  Home :: Contact :: Syndication  :: Login
  26 Posts :: 0 Stories :: 15 Comments :: 0 Trackbacks

News

New blogging software!

Archives

Post Categories

Blogs

Some quick functions I created to reduce my time at the subversion command line.  The trick here is that I couldn't just alias the commands, I needed to create some small functions for each...

function st {Invoke-Expression "svn status"}
function sup {Invoke-Expression "svn update"}
function sci {Invoke-Expression "svn ci"}      --I use the %SVN_EDITOR% env var for my checkin message editing
function sin {Invoke-Expression "svn info"}

You could easily modify these to accept parameters...

function srv ([string]$filename){Invoke-Expression "svn revert $filename"}

I imagine I'll want these to be more flexible in the future, but for now they're saving me a lot of typing!

posted on Monday, August 20, 2007 2:39 PM