Created
October 12, 2011 17:16
-
-
Save jpoehls/1281866 to your computer and use it in GitHub Desktop.
Tortoise SVN (Svn-Tortoise) PowerShell function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
Blogged at http://www.interworks.com/blogs/jpoehls/2011/10/12/tortoise-svn-powershell-helper-function.