#!/bin/sh global test_description := ''git apply handling submodules'' source ./test-lib.sh source "$TEST_DIRECTORY"/lib-submodule-update.sh proc apply_index { git diff --ignore-submodules=dirty "..$1" | git apply --index - } test_submodule_switch "apply_index" proc apply_3way { git diff --ignore-submodules=dirty "..$1" | git apply --3way - } test_submodule_switch "apply_3way" test_done (CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <"git apply handling submodules">)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./test-lib.sh)}) (C {(.)} {(DQ ($ VSub_Name "$TEST_DIRECTORY")) (/lib-submodule-update.sh)}) (FuncDef name: apply_index body: (BraceGroup children: [ (Pipeline children: [ (C {(git)} {(diff)} {(--ignore-submodules) (Lit_Other "=") (dirty)} {(DQ (..) ($ VSub_Number "$1"))} ) (C {(git)} {(apply)} {(--index)} {(-)}) ] negated: False ) ] spids: [27] ) spids: [22 26] ) (C {(test_submodule_switch)} {(DQ (apply_index))}) (FuncDef name: apply_3way body: (BraceGroup children: [ (Pipeline children: [ (C {(git)} {(diff)} {(--ignore-submodules) (Lit_Other "=") (dirty)} {(DQ (..) ($ VSub_Number "$1"))} ) (C {(git)} {(apply)} {(--3way)} {(-)}) ] negated: False ) ] spids: [68] ) spids: [63 67] ) (C {(test_submodule_switch)} {(DQ (apply_3way))}) (C {(test_done)}) ] )