public VisorDiff(logicaGIT.CommitShortInfo _commit) { InitializeComponent(); logica = new logicaGIT(_commit.RepoPath); Commit cNuevo = logica.getCommitByID(_commit.ID); Commit cPadre = null; if (cNuevo.Parents.Count() > 0) { cPadre = cNuevo.Parents.First(); } else { cPadre = cNuevo; } cambios = logica.VerCambios(cPadre.Id.Sha, cNuevo.Id.Sha); foreach (TreeEntryChanges cambio in cambios) { if (logic.logicaGIT.extensionesProhibidas(cambio.Path)) { cmbFicheros.Items.Add(cambio.Path); } } }
public ElementoCommit(logicaGIT.CommitShortInfo commit, StackPanel _vparent) { InitializeComponent(); commitActual = commit; lblAutor.Content = commit.Autor; lblFecha.Content = commit.Fecha.ToShortDateString() + " " + commit.Fecha.ToShortTimeString(); lblID.Text = commit.ID; txtMensaje.Text = commit.Mensaje; vparent = _vparent; }
public VisorDiff(logicaGIT.CommitShortInfo _cAncient, logicaGIT.CommitShortInfo _cNew) { InitializeComponent(); }