Roland's homepage

My random knot in the Web

gitdates

Update: The checkfor function was split off into its own
(included) module.

In answer to this question on stackechange, I wrote gitdates.py. If it is called from a directory that is under git resivion control, it lists all the files there with the short hashtag and the date from when they were last committed.

Example output:

verbruik|2d80861|2012-10-08 19:06:33 +0200
mkindexpic|8d92934|2012-08-31 21:21:38 +0200
www-sync|bdf9956|2012-10-14 21:37:43 +0200
mkphotopage|8d92934|2012-08-31 21:21:38 +0200
softwareinfo.py|a4b6319|2012-10-28 17:00:24 +0100
mksmall|8d92934|2012-08-31 21:21:38 +0200
source:gitdates.zip
GPG signature:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEABECAAYFAlDWRg4ACgkQEnfvsMMhpyW5zwCeMluBlhtyIossAr1eix7SfqoI
vzgAn2gXHuCKqs/fNKTfKTDi991rv+K1
=skE8
-----END PGP SIGNATURE-----
SHA256 hash:2e374c2b8defc6d348295ed10a0ff8f9e66ce8fecfdedf510e320b223b639b7a
Requirements:python, git

Note

|filename|/images/cc0.png

To the extent possible under law, Roland Smith has waived all copyright and related or neighboring rights to gitdates.py. This work is published from the Netherlands.