Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-1250

Add commandline options to SourceTree.exe to open/import repos

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • None
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Add commandline options to open bookmarked repos (or prefill the import dialog or import it directly).

      For example:

      SourceTree.exe --open bookmarkname
      --> launch SourceTree and open the bookmarked repo 'bookmarkname' if it exists

      SourceTree.exe --open c:\path\to\repo
      --> launch SourceTree and open the bookmarked repo which points to c:\path\to\repo
      OR open the 'Add working copy' dialog with the path prefilled

      SourceTree.exe --open bookmarkname=c:\path\to\repo
      --> launch SourceTree and open the bookmarked repo which points to c:\path\to\repo
      OR perform an 'Add working copy' operation and then open then display the repo

      additionally, one could drop the following bash script next to SourceTree.exe to trigger it via "git srctree"
      or
      register a windows explorer folder action to trigger it from explorer

      git-srctree
         #!/bin/bash
         REPO="${1-$(pwd)}"
         SourceTree.exe --open "$(cygpath -w $REPO)"
      

      Attachments

        Issue Links

          Activity

            People

              sstreeting Steve Streeting (Inactive)
              f40ffa31124c Michael Locher
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: