When building Xen from a source tarball, commit information is usually lost, especially if the tarball was generated from a tag.
Have `git archive` automatically fill in metadata at the point of creating the archive, which is especially useful when using web snapshot links such as: http://xenbits.xen.org/gitweb/?p=xen.git;a=snapshot;h=HEAD;sf=tgz to obtain the tarball. Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> --- CC: George Dunlap <george.dun...@eu.citrix.com> CC: Ian Jackson <ian.jack...@eu.citrix.com> CC: Jan Beulich <jbeul...@suse.com> CC: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> CC: Stefano Stabellini <sstabell...@kernel.org> CC: Tim Deegan <t...@xen.org> CC: Wei Liu <wei.l...@citrix.com> It would be useful if this could be included in 4.8, and backported to older releases (Assuming noone has any objections) --- .gitarchive-info | 2 ++ .gitattributes | 1 + 2 files changed, 3 insertions(+) create mode 100644 .gitarchive-info create mode 100644 .gitattributes diff --git a/.gitarchive-info b/.gitarchive-info new file mode 100644 index 0000000..83e5b86 --- /dev/null +++ b/.gitarchive-info @@ -0,0 +1,2 @@ +Changeset: $Format:%H$ +Commit date: $Format:%cD$ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f7bf506 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.gitarchive-info export-subst -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel