Hi Michael,
If you install the command line tools from the SourceTree menu you can then run "stree" from the terminal. Here's the menu:
Hope that helps
i am running the Windows version of SourceTree and do not see a menu command for "Install Command Line Tools". Am I missing something, or is it not available on Windows? If not available, are there plans to implement it for windows?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This isn't supported yet in Windows but isn't actually that hard - you can already launch SourceTree.exe from the command line and it will automatically activate the current instance if there is one - you just can't pass a file path right now (it's only used for the Clone In SourceTree button on Bitbucket right now). Tracking here: https://jira.atlassian.com/browse/SRCTREEWIN-394
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, good point - unfortunately ClickOnce moves it subtly every update (seems to calculate a hash to use in the folder name). You can always see the current location in the registry because of the URL handler hook, if you look under HKEY_CURRENT_USER\Software\Classes\sourcetree\shell\open\command
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What's about about arguments that I can pass to stree?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
+1 for arguments
i want to open the file changes history panel from the command line if possible
or at least find help on any available options
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a stree.ps1 file in a directory contained in $PATH with this content:
Start-Process "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -ArgumentList "-f $((Resolve-Path $args[0]).toString())"
Then you can just call stree . or stree ../relative/path
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bit late to the party :)
In a cmd-Window:
[installpath]\SourceTree.exe -f [path to repo] log -> opens in log (history) view
[installpath]\SourceTree.exe -f [path to repo] status -> opens in status (commit) view
[installpath]\SourceTree.exe /? pops a messagebox for commandline options
BR,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.