I need to generate a list of all the files that has been changed in this year.
The following snippet does the job - but it take ~10 minutes to run:
for i in $(git ls-files)
do
if [[ $(git log -1 --date=short --format="%ad" -- $i) =~ 2016- ]]
then
echo $i
fi
done
How this be done in a more efficient way?