Skip to content

Suggestion: option to only replace text under specific paths but keep the repo structure #710

@dcheng1248

Description

@dcheng1248

I had a use case where I needed to replace texts but only under specific subpaths. I did not find an option to do that directly (--path would delete all other files) and ended up using --blob-callback that implements an internal check of the filename path.

I think this may not be a rare use case and it would be convenient to have an option for it. I would be happy to contribute to the implementation, if this suggest is approved.

Behavior:

  • if subpath exists in ref, check for replacements for files under this path. Keep all other files unchanged.
  • if subpath does not exist in ref, keep ref unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions