-
-
Notifications
You must be signed in to change notification settings - Fork 5
Set Creation Date of PDF to date of addition / modification in main repo. #7
Comments
Let's go, in a Debian/Ubuntu environment this works: sudo apt install git-restore-mtime
git clone https://github.com/simple-icons/simple-icons.git
cd simple-icons
git restore-mtime
git ls-tree -r --name-only HEAD | while read filename; do echo "$(git log -1 --format="%ad" -- $filename) $filename"; done
cd ..
rm -rf simple-icons Keep in mind that the repository must be fetched entirely, with all commits (don't use |
Pretty cool @mondeja, thanks for investigating this 😄
Still, that's not as small as it should be. Honestly, I wouldn't mind nuking the entire history created by the svg-to-pdf-bot 🙃 |
Definitely, that would be very cool. |
I read that wrong. I was talking about the history of |
Ahm, fine, I thought you were referring to old commits in the simple-icons repository. Anyways, as Github Actions usually maintains download speeds between 50 and 100 mb/sec, I'm not worried about that. |
Discussed in #4 - look to set the Creation Date based on when the SVG was last modified within the main repo.
This is likely to be quite a large job to extract the timestamp from the main repo via the API - unless anyone else can figure out an easier way to update the files.
The text was updated successfully, but these errors were encountered: