Skip to content

Instantly share code, notes, and snippets.

@jpoehls
Created October 12, 2011 17:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpoehls/1281866 to your computer and use it in GitHub Desktop.
Save jpoehls/1281866 to your computer and use it in GitHub Desktop.
Tortoise SVN (Svn-Tortoise) PowerShell function
# Helper function for opening the Tortoise SVN GUI from a PowerShell prompt.
# Put this into your PowerShell profile.
# Ensure Tortoise SVN is in your PATH (usually C:\Program Files\TortoiseSVN\bin).
function Svn-Tortoise([string]$Command = "commit") {
<#
.SYNOPSIS
Launches TortoiseSVN with the given command.
Opens the commit screen if no command is given.
List of supported commands can be found at:
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html
#>
TortoiseProc.exe /command:$Command /path:"$pwd"
}
Set-Alias tsvn "Svn-Tortoise"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment