|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] git: Add metadata to the result of `git archive`
commit bd4d31be073166fc69b131e6375b55033b83b1c0
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Thu Nov 3 17:57:57 2016 +0000
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Nov 4 14:08:35 2016 +0000
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@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
Release-acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
.gitarchive-info | 2 ++
.gitattributes | 1 +
2 files changed, 3 insertions(+)
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
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |