[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: