git: Add metadata to the result of `git archive`
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Nov 2016 17:57:57 +0000 (17:57 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 4 Nov 2016 14:08:35 +0000 (14:08 +0000)
commitbd4d31be073166fc69b131e6375b55033b83b1c0
treed5db311e1cb2de1064aa026da62106d3e0cc6527
parentc47237a3d9e64abab6827d5f461d395ad0dc8ba2
git: Add metadata to the result of `git archive`

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.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
.gitarchive-info [new file with mode: 0644]
.gitattributes [new file with mode: 0644]