Skip to content

refactor: expand internal abbreviations to full words - #21

Merged
HansRobo merged 1 commit into
mainfrom
refactor/expand-internal-abbreviations
Jun 3, 2026
Merged

HansRobo merged 1 commit into
mainfrom
refactor/expand-internal-abbreviations

Conversation

@HansRobo

@HansRobo HansRobo commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

Rename project-specific acronyms and short variable names to readable full words across the codebase. This is a pure rename — no behavior, CLI, or config changes. All 209 tests pass.

What changed

Module files (renamed via git mv, with matching test files):

Before After
core/dga.py core/dependency_graph.py
core/cdc.py core/colcon_discovery.py
core/wsm.py core/worktree_state.py
util/fs.py util/filesystem.py

Local variables / identifiers:

  • dga → graph, cdc → discovery, wsm → manager
  • cs → changeset, wt → worktree
  • ns → parsed (the argparse Namespace; args was already the enclosing function parameter)
  • _load_config_and_wsm → _load_config_and_manager

Docs: the README architecture section now spells out the module names instead of the CDC/DGA/WSM acronyms.

Intentionally left unchanged

  • CLI surface: the ws command group, the --no-rdeps flag
  • Common abbreviations: pkg, sha, meta, env, repo
  • Class names (already full words, e.g. DependencyGraphAnalyzer)

Verification

  • uv run pytest → 209 passed
  • uv run cwm --help → OK

Rename project-specific acronyms and short variable names to readable
full words across the codebase. This is a pure rename: no behavior, CLI,
or config changes.

Module files (renamed via git mv, with matching test files):
- core/dga.py -> core/dependency_graph.py
- core/cdc.py -> core/colcon_discovery.py
- core/wsm.py -> core/worktree_state.py
- util/fs.py -> util/filesystem.py

Local variables and identifiers:
- dga -> graph, cdc -> discovery, wsm -> manager
- cs -> changeset, wt -> worktree
- ns -> parsed (the argparse Namespace; `args` was already the enclosing
  function parameter)
- _load_config_and_wsm -> _load_config_and_manager

Also update the README architecture section to spell out the module
names instead of the CDC/DGA/WSM acronyms.

The CLI surface (the `ws` command group, the `--no-rdeps` flag) and
common abbreviations (pkg, sha, meta, env, repo) are intentionally left
unchanged.
@HansRobo HansRobo added the release:patch Bump patch version on merge label Jun 3, 2026
@HansRobo
HansRobo merged commit fca84fd into main Jun 3, 2026
11 of 12 checks passed
@HansRobo
HansRobo deleted the refactor/expand-internal-abbreviations branch June 3, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Bump patch version on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant