瀏覽代碼

Fixes stash parents

main
Eric Amodio 2 年之前
父節點
當前提交
1002950f2a
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. +4
    -2
      src/plus/webviews/graph/graphWebview.ts

+ 4
- 2
src/plus/webviews/graph/graphWebview.ts 查看文件

@ -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…
取消
儲存