private void fileTreeCleanWorkingTreeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var    gitItem = tvGitTree.SelectedNode?.Tag as GitItem;
            string filePath;

            if (gitItem != null)
            {
                filePath = gitItem.FileName + "/"; // the trailing / marks a directory
            }
            else
            {
                //No item selected is handled as the repo source
                filePath = Module.WorkingDir;
            }
            UICommands.StartCleanupRepositoryDialog(this, filePath);
        }
Exemple #2
0
        private void fileTreeCleanWorkingTreeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var gitItem = (GitItem)tvGitTree.SelectedNode.Tag;

            UICommands.StartCleanupRepositoryDialog(this, gitItem.FileName + "/"); // the trailing / marks a directory
        }