Skip to content

refactor(config): rename path-traversal filters to dirname/basename - #2605

Merged
max-sixty merged 1 commit into
mainfrom
parent
May 4, 2026
Merged

max-sixty merged 1 commit into
mainfrom
parent

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

`name` was too generic — likely to collide with future filters operating on domain objects (a Branch, a worktree, a remote). Switch to the POSIX/jinja-convention pair so both filters travel together: ansible ships `dirname`/`basename`, shell users already know them, and `dirname` is no more ambiguous than `parent` was.

Follow-up to #2592, which landed ~30 minutes ago — no users to break yet.

This was written by Claude Code on behalf of @max-sixty

`name` was too generic — likely to collide with future filters operating on
domain objects (a Branch, a worktree). Switch to the POSIX/jinja-convention
pair so both filters travel together: ansible ships `dirname`/`basename`,
shell users already know them, and `dirname` is no more ambiguous than `parent`
was. Filters landed in #2592 ~30 minutes ago, so no users to break.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit c82236e into main May 4, 2026
27 checks passed
@max-sixty
max-sixty deleted the parent branch May 4, 2026 20:23
@max-sixty max-sixty mentioned this pull request May 5, 2026
2 of 3 tasks
max-sixty added a commit that referenced this pull request May 5, 2026
## Summary
Release v0.48.0. See
[CHANGELOG.md](https://github.com/max-sixty/worktrunk/blob/release/CHANGELOG.md)
for the full notes.

Highlights:
- `--format=json` extends to seven step + hook commands (#2560)
- `wt step commit` / `wt step squash` gain `--dry-run` (#2557)
- New `dirname` / `basename` template filters (#2592, #2605)
- New `[remove] delete-branch` config option (#2589)
- `wt-perf timeline` subcommand (#2558)
- Faster `wt list` on dirty worktrees (#2602) and faster alias dispatch
(#2556, #2573)
- Short-SHA display honors `core.abbrev` (#2576)
- Cleaner `wt config show` shell-integration section for new users

## Test plan
- [x] `cargo run -- hook pre-merge --yes` (3497 tests, lints clean)
- [x] `cargo semver-checks check-release -p worktrunk` consulted; minor
bump confirmed
- [ ] CI green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants