Skip to content

Instantly share code, notes, and snippets.

@fooman
Created January 29, 2020 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fooman/ea7e6b5eb11721148f7b2a7c93f23bd0 to your computer and use it in GitHub Desktop.
Save fooman/ea7e6b5eb11721148f7b2a7c93f23bd0 to your computer and use it in GitHub Desktop.
Remove copyright updates from Magento 1 patch file
tac CE-1.9.4.3-1.9.4.4-2020-01-28-04-51-47.diff | sed '/+ \* @copyright/{n;N;N;N;N;N;N;d;}' |sed '/+\/\/ @copyright/{n;N;N;N;N;N;N;d;}'| tac | sed '/+ \* @copyright/{N;N;N;N;N;d;}' | sed '/+\/\/ @copyright/{N;N;N;N;N;d;}'> CE-actual.diff
@fooman
Copy link
Author

fooman commented Jan 29, 2020

Removes about 6MB from the patch file that is just updating the copyright line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment