Skip to content

refactor: fix misspelled identifiers in conflict and choice handling - #1066

Merged
marcospb19 merged 1 commit into
ouch-org:mainfrom
foorgange:fix/typo-file-conflict-identifiers
Sep 4, 2026
Merged

refactor: fix misspelled identifiers in conflict and choice handling#1066
marcospb19 merged 1 commit into
ouch-org:mainfrom
foorgange:fix/typo-file-conflict-identifiers

Conversation

@foorgange

@foorgange foorgange commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Renames consistently misspelled identifiers introduced in #779:

  • FileConflitOperation -> FileConflictOperation
  • choises / choise / Choise -> choices / choice / Choice (field, parameter, locals, doc comments)

The surrounding code already spells these words correctly (resolve_path_conflict, resolve_extraction_conflict, pub struct Choice, user-facing "Handle file conflict for ..." strings), so the old names read as typos rather than intentional naming.

Pure rename:

  • no behavior change and no output strings touched, so UI test snapshots are unaffected (per CONTRIBUTING.md)
  • ouch is a binary crate, so nothing outside the crate can depend on these names
  • a repo-wide grep confirms every occurrence lives in src/utils/question.rs and src/utils/fs.rs

Also fixes one misspelled test comment in src/utils/formatting.rs ("aproximation").

Renames consistently misspelled identifiers introduced in ouch-org#779:

- `FileConflitOperation` -> `FileConflictOperation`
- `choises` / `choise` / `Choise` -> `choices` / `choice` / `Choice`
  (field, parameter, locals, doc comments)

The surrounding code already spells these words correctly
(`resolve_path_conflict`, `resolve_extraction_conflict`,
`pub struct Choice`, user-facing "Handle file conflict for ..." strings),
so the old names read as typos rather than intentional naming.

Pure rename:
- no behavior change and no output strings touched, so UI test snapshots
  are unaffected (per CONTRIBUTING.md)
- `ouch` is a binary crate, so nothing outside the crate can depend on
  these names
- a repo-wide grep confirms every occurrence lives in
  `src/utils/question.rs` and `src/utils/fs.rs`

Also fixes one misspelled test comment in `src/utils/formatting.rs`
("aproximation").
@foorgange
foorgange force-pushed the fix/typo-file-conflict-identifiers branch from 5c2da97 to fd84326 Compare September 4, 2026 15:18

@marcospb19 marcospb19 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marcospb19
marcospb19 merged commit 721bb50 into ouch-org:main Sep 4, 2026
18 checks passed
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