mattlqx / pre-commit-search-and-replace

Plugin for pre-commit for arbitrary search and replace on committed files.
MIT License
12 stars 6 forks source link

Branch support #12

Open all4innov opened 1 year ago

all4innov commented 1 year ago

@mattlqx Is it possible to use different search-and-replace based on branches? eg:

mattlqx commented 1 year ago

I think so. pre-commit should just use whatever config is on the branch at the time.

all4innov commented 1 year ago

not working as seach-and-replace dont take into account the branch