newren / git-filter-repo

Quickly rewrite git repository history (filter-branch replacement)
Other
8.44k stars 706 forks source link

Feature Request: Allow comments in --replace-text #518

Open baptisteyelhow opened 1 year ago

baptisteyelhow commented 1 year ago

As the file used in --replace-text can be quite complex, it could make sense to allow comments in order to comment lines or at least group them. Best probably would be to ignore all lines that start with a #.

newren commented 4 months ago

Would be similar to 38e70b69e86bd6cdcfc3a233ed6082839e0d925e, but for --replace-text rather than --paths-from-file.