Skip to content

Visual Studio plugin for Git submodules

License

Notifications You must be signed in to change notification settings

TobiasSekan/GitSubModulesVsPlugin

Repository files navigation

Git Submodules

Build status Coverage Status

Info

This Visual Studio extension is for users that need a easier way to handle with Git submodules inside Visual Studio.

System requirements

How to

  1. Download from Visual Studio extension site or over Visual Studio extension manager (or direct)
  2. Install VSIX
  3. Restart Visual Studio
  4. Menu -> View -> Other Windows -> Git Submodules

For Visual Studio 2010 users

  • The tool window is automatic close on visual studio 2010 shutdown
  • It's currently not possible to restore the window on startup without a partial crash inside visual studio 2010
  • When you know about this problem and you have a solution, please write me

Whats next?

Supported Git functions for each and all submodules

  • Fetch
  • Update (Force)
  • Pull origin master
  • Init
  • Deinit (Force)

Shown information

  • Git version
  • Path to the current open solution
    • Left-click for open in File-Explorer
  • Current brach and count of all local branches of the repository
    • Tool-Tip with list of all local branches of the repository
  • Submodules of this repository
    • Status of the submodule (HEAD, Current, Error, Unkown)
    • Name of the Submodule
      • Left-click for open in File-Explorer
    • Id (SHA-1) of the submodule
      • Full version on expaned info, otherwise short version
      • Mark and use CTRL+C to copy to clipboard
    • Current branch and count of branches of this submodule
      • Tool-Tip with list of all local branches of the repository
    • Last Tag of the submodule
      • Mark and use CTRL+C to copy to clipboard
    • Status of the submodule

Right-click options for a submodule

  • Open in File-Explorer
  • Update (Force)
  • Pull origin master
  • Init
  • Deinit (Force)
  • Copy complete id to clipboard
  • Copy short id to clipboard
  • Copy complete tag to clipboard
  • Copy branch name to clipboard
  • Copy branch list to clipboard

Others

  • Show all informations and all functions only for the current entered submodule
    • All other submodules show only name, short id and buttons for update and pull orgin master
  • Supported any used Visual Studio theme
  • Automatic fetch submodule status from server on first open of a soultion
  • Debug and error messages will be written on a separate output window
  • The output window is automatical actiavte on the first use and when a error occures

Pictures

On dark theme picture

On blue theme picture

On light theme picture

Submodule status colours

Submodule status Colour
Unknown Status (Please Report) LightGray
Submodule is not initialized LightCoral (Red)
Submodule is initialized Yellow
Submodule has merge conflicts DarkOrange
Submodule is current YellowGreen
Submodule is not current LightSkyBlue

Test matrix

Visual Studio Community / Express Professional Premium Ultimate / Enterprise
2010 - Should be work Should be work tested
2012 - tested Should be work Should be work
2013 - tested Should be work tested
2015 tested tested - Should be work

Copyrights and Copylefts