From: Miquel G. <mi...@ic...> - 2020-07-01 10:42:30
|
On Wed, 1 Jul 2020 12:18:16 +1200 Henri Menke <hen...@gm...> wrote: > If I go to the SourceForge project page [1] and just hit the `Download > Snapshot' button in the upper right corner, I get a zip file with all > the source but no .git folder and also no timestamp.h. I suspect there > is no or at least no easy way to make SourceForge preprocess the source > when generating a snapshot. > You can use the mtime of any file inside the zip file. All them are set to the commit time of the git-hash you hit 'Download Snapshot' for. Thus "stat -c '%y ' src/Makefile.am" will give the commit date. For tarballs obtained via "git archive -o snapshot.tar githash" all the files in the tarball have the commit-time as mtime. Miquel |