]> git.ipfire.org Git - thirdparty/xz.git/commit
Use git_commit_info.h if it has been generated
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 7 Apr 2025 14:38:32 +0000 (17:38 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 7 Apr 2025 14:38:32 +0000 (17:38 +0300)
commit577d497cca985258b39aa0ce48bb068d1bc91dbf
treefb592237bee2d6cc262d30f81b80fc91c5730962
parent45c239181b98be370be27156e025c91d6f82dc6a
Use git_commit_info.h if it has been generated

Only files that need the commit info #include "git_commit_info.h".
This way only those files are rebuilt after git_commit_info.h has
been updated.

Now lzma_version_string() and xz --version show the commit date
and commit ID of the latest commit if the .git directory and the
"git" tool were available when building the package.
src/common/common_w32res.rc
src/liblzma/common/common.c
src/lzmainfo/lzmainfo.c
src/xz/message.c
src/xzdec/xzdec.c