Explorar el Código

Fixes stash parents

main
Eric Amodio hace 2 años
padre
commit
1002950f2a
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. +4
    -2
      src/plus/webviews/graph/graphWebview.ts

+ 4
- 2
src/plus/webviews/graph/graphWebview.ts Ver fichero

@ -555,8 +555,10 @@ async function convertToRows(
parents = commit.parents;
// Remove the second parent, if existing, from each stash commit as it affects column processing
if (parents.length > 1 && stash) {
parents = [...parents].splice(1, 1);
if (stash && parents.length > 1) {
// Copy the array to avoid mutating the original
parents = [...parents];
parents.splice(1, 1);
}
rows.push({

Cargando…
Cancelar
Guardar