Use git commit date of man page when generating

The last change to a file is not necessarily the one with the latest author date,
but we want to get the last time the man page was changed (on some branch) and
thus it makes more sense to use the commit date rather than the author date.
This commit is contained in:
Claudio Bley 2020-01-07 22:36:15 +01:00
parent d4aa862f79
commit 524a9b6ed2

View file

@ -20,7 +20,7 @@ file 'man/colorls.1' => ['man/colorls.1.ronn', 'lib/colorls/flags.rb'] do
flags = ColorLS::Flags.new
attributes = {
date: Date.iso8601(`git log -1 --pretty=format:%aI -- man/colorls.1`),
date: Date.iso8601(`git log -1 --pretty=format:%cI -- man/colorls.1`),
manual: 'colorls Manual',
organization: "colorls #{ColorLS::VERSION}"
}