Skip to content
Snippets Groups Projects
Commit 3374fa18 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Merge commit 'cd408acc'

parents 6b6596e0 cd408acc
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,10 @@ then
else
years=$(git log --follow -M75% --format=%aD $file |
sort -r -n -k 4 |
awk '{if(NR==1)last=$4;}END{
awk -v now="$(date +%Y)" '{if(NR==1)last=$4;}END{
# override last with now
last=now
# Notice that the script could be simplified, I leave it as is for reference:
first=$4
if(first=="") print ""
else if(first==last) print first;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment