Re: Bug#905440: www.debian.org: remove "last modified" from footer

Stéphane Blondon <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <[email protected]>
Hello,

Le 11/08/2018 à 21:12, Osamu Aoki a écrit :
> No not mtime but git commit time, I guess.  That is simpler and more
> robust.  There may be cleaner way but my elementally git skill can come
> up with this for path/to/file.to.check as:
> 
>  $ git log -n 1 path/to/file.to.check |sed -n -e "s/Date: *//p" 

It's even doable with:

$ git log -n 1 --pretty=format:"%ad" path/to/file.to.check


In another project, I get:
$ git log -n 1 --pretty=format:"%ad" README.rst
Thu Feb 15 02:50:37 2018 +0100

-- 
Stéphane
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEFXRbhjtX1pKPhY7rorkbxs1OvdwFAltu5ioACgkQorkbxs1O
vdxq/A/9GG+2+huAjlADoWyxdOQNXWsjbIsk8e337w+VV2M1SFdDH/s+xOMLokng
GhjAIgYYdqPbk+orAjEV81kOJ7ewuJNYBWofAExlTe7RgUyTgy0m2aCCgmDcJbs+
6Df908yhHObM7gLWP5Y0GbBX/O7dFuaguRdlsElWyma7/IEbUmlDfkpUQzq9MF8P
uktog+BgDmr8Fpy0FccjHkZsf6fq0s0loxOdN9V/4Ngwgrak6CFKwcenscwWKRj/
tnHX4eRz63lcaKofppZ4gqR0qLJMaypL6vOE64R+shMwTtmUtSWLJJ2p9LNNAdyW
flucs8/lO2uu1Qu9CQCo/ni5wmUOdc8PPMb6km0Lzc/pV0qvODoAeP1hKUNgL/Wz
WjPs8YxAUse6e9ZDup1mzKFqGT1bFbcS6nUO29bhAVJkf+C53Y8B54g7qo40QQ6A
m4dD3jdSO4bS1BHLxEbc8XDBJcwIqwmOIDs4Tja2NPe7RKmkhW0sN7GrfIZ5F1WQ
sovL76Nt+QZ+PYpPNtRQwgWfnGblF2QKjO6AYp0X78ho+YNgfKLyo83LQyhwTqZP
AYn5MAMltVrYXDtUBGfaAXC0psPl6FjmYUGmHqB9OYguHlHyQi2uUlHGHJwKsdfV
NK9HaKiCTafGKqG+olJqKdYiMI/0ewF0TjObEtkt6OA7xs3Ytfc=
=JUq9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.