GitCommands.GitModule.IsSubmodule C# (CSharp) Method

IsSubmodule() public method

public IsSubmodule ( string submodulePath ) : bool
submodulePath string
return bool
        public bool IsSubmodule(string submodulePath)
        {
            var result = RunGitCmdResult("submodule status " + submodulePath);

            if (result.ExitCode == 0
                // submodule removed
                || result.StdError.StartsWith("No submodule mapping found in .gitmodules for path"))
                return true;

            return false;
        }
GitModule