0

How can multiple lines be ignored in git? Or in other words: how to add multiple filters

This method works well for a filter

I added a filter that works fine, but I want to add a few filters, for several lines. If anyone knows please help

GoodPal
  • 23
  • 3

1 Answers1

0

Just have your single filter rewrite all the lines in question. Sed, for example, takes multiple "s/x/y/g" expressions on its command line. If you need more, just write your filter as a shell script, then you can do any text processing you like in that script.

GaryO
  • 5,873
  • 1
  • 36
  • 61