Repository navigation
refactor(for-each): use canonical expand_shell_template helper - #2103
Merged
Merged
Conversation
Last call site still inlining the `&str` map conversion — fold onto the helper introduced in #2095. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
Apr 11, 2026
max-sixty
added a commit
that referenced
this pull request
Apr 12, 2026
The lazy/eager distinction in alias template expansion was unnecessary — alias expansion always happens at execution time (in `AliasExecCtx::run`), so `vars.*` references naturally read fresh values from git config without special handling. The "lazy" path was round-tripping `context_json` back to the same `HashMap` that was serialized from `context_map`. Removes the intermediate `HashMap<&str, &str>`, the `is_pipeline` field, and the `template_references_var` branching. Both dry-run and execution paths now route through `expand_shell_template`, making it the canonical expansion path for all three consumers (hooks, aliases, pipelines). Follow-up to #2095 and #2103. > _This was written by Claude Code on behalf of @max-sixty_ --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Last call site still inlining the
&strmap conversion — fold onto theexpand_shell_templatehelper introduced in #2095.Follow-up from #2095 session-ending list.