Skip to content

Refine diff input handling and strengthen test coverage#45

Merged
GrantBirki merged 1 commit intomainfrom
improvements
Mar 4, 2026
Merged

Refine diff input handling and strengthen test coverage#45
GrantBirki merged 1 commit intomainfrom
improvements

Conversation

@GrantBirki
Copy link
Copy Markdown
Owner

  • invoke git diff with argv parsing and workspace-scoped file inputs
  • expand unit coverage for option parsing, output modes, and failure cases
  • tighten acceptance checks and keep the test script resilient when badge generation is unavailable

- invoke git diff with argv parsing and workspace-scoped file inputs
- expand unit coverage for option parsing, output modes, and failure cases
- tighten acceptance checks and keep the test script resilient when badge generation is unavailable
@GrantBirki GrantBirki merged commit dd58b1a into main Mar 4, 2026
10 checks passed
@GrantBirki GrantBirki deleted the improvements branch March 4, 2026 04:17
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6a1a1c794c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/functions/git-diff.js
Comment on lines +58 to +60
} else if (char === '\\') {
escaped = true
} else {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve backslashes in double-quoted git_options

tokenizeInputArgs strips every \ seen inside double quotes. Inputs like --word-diff-regex="\\w+" become --word-diff-regex=w+, so git diff receives a different option than requested and can produce incorrect output. This is a regression from shell-like quoting where \ is not removed before ordinary characters inside "...".

Useful? React with 👍 / 👎.

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.

1 participant