Exemple #1
0
        public FormCommitDiff(GitUICommands aCommands, GitRevision revision)
            : this(aCommands)
        {
            _revision     = revision;
            _revisionGuid = revision.Guid;

            if (_revision != null)
            {
                DiffFiles.SetDiff(revision);

                commitInfo.Revision = _revision;
            }
        }
        public FormCommitDiff(GitUICommands aCommands, string revision)
            : this(aCommands)
        {
            //We cannot use the GitRevision from revision grid. When a filtered commit list
            //is shown (file history/normal filter) the parent guids are not the 'real' parents,
            //but the parents in the filtered list.
            _revision = Module.GetRevision(revision);

            if (_revision != null)
            {
                DiffFiles.SetDiff(_revision);

                commitInfo.Revision = _revision;
            }
        }
        public FormCommitDiff(GitUICommands aCommands, string revision)
            : this(aCommands)
        {
            //We cannot use the GitRevision from revision grid. When a filtered commit list
            //is shown (file history/normal filter) the parent guids are not the 'real' parents,
            //but the parents in the filtered list.
            _revision = Module.GetRevision(revision);

            if (_revision != null)
            {
                DiffFiles.SetDiff(_revision);

                commitInfo.Revision = _revision;

                Text = "Diff - " + GitRevision.ToShortSha(_revision.Guid) + " - " + _revision.AuthorDate + " - " + _revision.Author + " - " + Module.WorkingDir;;
            }
        }
Exemple #4
0
        public FormCommitDiff(GitUICommands aCommands, GitRevision revision)
            : base(aCommands)
        {
            InitializeComponent();
            Translate();
            DiffText.ExtraDiffArgumentsChanged += DiffText_ExtraDiffArgumentsChanged;
            DiffFiles.Focus();

            _revision = revision;

            DiffFiles.GitItemStatuses = null;
            if (_revision != null)
            {
                DiffFiles.SetDiff(revision);

                commitInfo.Revision = _revision;
            }
        }