public void LaunchGitExtensions()
            {
                if (!Directory.Exists(Info.Path))
                {
                    MessageBoxes.SubmoduleDirectoryDoesNotExist(owner: null, Info.Path, Info.Text);
                    return;
                }

                GitUICommands.LaunchBrowse(workingDir: Info.Path.EnsureTrailingPathSeparator(), ObjectId.WorkTreeId, Info?.Detailed?.RawStatus?.OldCommit);
            }
Exemplo n.º 2
0
        private void OpenRepo(string repoPath, Action <object, GitModuleEventArgs> setGitModule)
        {
            if (Control.ModifierKeys != Keys.Control)
            {
                ChangeWorkingDir(repoPath, setGitModule);
                return;
            }

            GitUICommands.LaunchBrowse(repoPath);
        }
 public void LaunchGitExtensions()
 {
     GitUICommands.LaunchBrowse(workingDir: Info.Path.EnsureTrailingPathSeparator(), ObjectId.WorkTreeId, Info?.Detailed?.RawStatus?.OldCommit);
 }
Exemplo n.º 4
0
 private void SpawnCommitBrowser(GitItem item)
 {
     GitUICommands.LaunchBrowse(workingDir: _fullPathResolver.Resolve(item.FileName.EnsureTrailingPathSeparator()), selectedId: item.ObjectId);
 }
Exemplo n.º 5
0
 private void btOpenSubmodule_Click(object sender, EventArgs e)
 {
     GitUICommands.LaunchBrowse(workingDir: Module.GetSubmoduleFullPath(_filename));
 }