fix: support git -C <path> in rewrite registry#556
Closed
ousamabenyounes wants to merge 1 commit intortk-ai:developfrom
Closed
fix: support git -C <path> in rewrite registry#556ousamabenyounes wants to merge 1 commit intortk-ai:developfrom
ousamabenyounes wants to merge 1 commit intortk-ai:developfrom
Conversation
The regex pattern for git commands now accepts -C and -c flags before the subcommand, using a non-capturing group to preserve subcommand extraction. Closes rtk-ai#555 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ousama Ben Younes <benyounes.ousama@gmail.com>
4 tasks
aeppling
approved these changes
Mar 13, 2026
Contributor
|
Benchmark cicd failed , need to be fix |
Contributor
|
Closing this PR and merging #547 |
Contributor
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.
Summary
rtk rewritenot recognizinggit -C <path> <subcommand>commands-Cand-cflags before the git subcommand using a non-capturing group(?:-[Cc]\s+\S+\s+)*-Cfor status/log/diff + classify verificationBefore / After
Test plan
git -Csupport (rewrite + classify)git diff --cachednot broken (non-capturing group preserves subcommand extraction)cargo run -- rewriteCloses #555
🤖 Generated with Claude Code