1
0
Fork 0

copyright script will now --follow files

perfodd
Mike Gerwitz 2013-12-22 08:53:01 -05:00
parent 79109304cc
commit 7822f120ca
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ for file in $files; do
# determine copyrightable years from commit log and format as year1, year2, # determine copyrightable years from commit log and format as year1, year2,
# ..., yearn (TODO: join consecutive years with dash) # ..., yearn (TODO: join consecutive years with dash)
years=$( years=$(
git log --format='%aD %s' -- "$file" \ git log --format='%aD %s' --follow -- "$file" \
| grep -vF '[copyright]' \ | grep -vF '[copyright]' \
| cut -d' ' -f4 \ | cut -d' ' -f4 \
| sort -u \ | sort -u \