1
0
mirror of synced 2026-01-26 20:31:53 +00:00

restore-versions now sets date of version to date of commit (#624)

This commit is contained in:
Larry Masinter
2022-05-16 16:49:22 -07:00
committed by GitHub
parent 8bfbe99367
commit d2ce98d131

View File

@@ -108,7 +108,11 @@ do git checkout -q $commit "$file" && \
n=$fcv
fi
fi
ln "$file" "$file.~"$n"~" && n=`expr $n + 1`
ln "$file" "$file.~"$n"~" && \
date=`git log $commit -1 --date=format-local:%Y%m%d%H%M.%S --pretty="format:%cd"` && \
echo $commit $file $n $date && \
touch -t $date "$file" "$file.~"$n"~" && \
n=`expr $n + 1`
done
### END SKIP