Browse Source

Fixes stash parents

main
Eric Amodio 2 years ago
parent
commit
1002950f2a
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/plus/webviews/graph/graphWebview.ts

+ 4
- 2
src/plus/webviews/graph/graphWebview.ts View File

@ -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({

Loading…
Cancel
Save