Exemplo n.º 1
0
        public void GitDiff(string tag, List <string> files)
        {
            string list = QuoteAndFlattenPaths(files);

            App.PrintStatusMessage("Diffing " + list, MessageType.General);
            RunCmd("difftool " + ClassDiff.GetDiffCmd() + " " + tag + " -- " + list, true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Run the external diff command on a given file or a list of files
        /// </summary>
        public void GitDiff(string tag, List <string> files)
        {
            string list = QuoteAndFlattenPaths(files);

            if (list == "\"\"") // For now, we don't want to match all paths but only diff selected files
            {
                App.PrintStatusMessage("Diffing: No files selected and we don't want to match all paths.", MessageType.General);
                return;
            }
            App.PrintStatusMessage("Diffing " + list, MessageType.General);
            RunCmd("difftool " + ClassDiff.GetDiffCmd() + " " + tag + " -- " + list, true);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Diff 2 selected revisions
        /// </summary>
        private void DiffRevisionsMenuItemClick(object sender, EventArgs e)
        {
            string cmd = "difftool " + ClassDiff.GetDiffCmd() + " " + lruSha[0] + ".." + lruSha[1] + " -- " + file;

            RunDiff(cmd);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Diff selected against the HEAD revision
        /// </summary>
        private void DiffVsClientFileMenuItemClick(object sender, EventArgs e)
        {
            string cmd = "difftool " + ClassDiff.GetDiffCmd() + " " + lruSha[0] + "..HEAD -- " + file;

            RunDiff(cmd);
        }