From e32a973c1b18f71237f660ce00f398a2aec2c2b6 Mon Sep 17 00:00:00 2001 From: csjones Date: Sun, 1 Mar 2026 16:06:36 -0800 Subject: [PATCH] fix: preserve extractions field when updating subtree config - Added extractions parameter to SubtreeConfig initialization in updateSubtree() - Added extractions parameter to SubtreeConfig initialization in updateSubtreeForReport() - Ensures extraction mappings are retained during config updates --- Sources/SubtreeLib/Commands/UpdateCommand.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/SubtreeLib/Commands/UpdateCommand.swift b/Sources/SubtreeLib/Commands/UpdateCommand.swift index 4e193d9..e09a867 100644 --- a/Sources/SubtreeLib/Commands/UpdateCommand.swift +++ b/Sources/SubtreeLib/Commands/UpdateCommand.swift @@ -310,7 +310,8 @@ public struct UpdateCommand: AsyncParsableCommand { tag: newTag, branch: newBranch, squash: subtree.squash, - extracts: subtree.extracts + extracts: subtree.extracts, + extractions: subtree.extractions ) } return subtree @@ -494,7 +495,8 @@ public struct UpdateCommand: AsyncParsableCommand { tag: newTag, branch: newBranch, squash: subtree.squash, - extracts: subtree.extracts + extracts: subtree.extracts, + extractions: subtree.extractions ) } return subtree