Last active
May 9, 2016 20:25
-
-
Save jstruzik/ed5d502ae0993fd14684d3a61eeb62dd to your computer and use it in GitHub Desktop.
Update PHPDoc copyright date only for modified files between branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff --diff-filter=ACMRTUXB --name-only branch_to_compare | xargs sed -i '' -E 's/@copyright [0-9]{4}/@copyright `date "+%Y"`/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's how to do it in GNU sed: