git: Add metadata to the result of `git archive`
PATCH 1/1 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.
---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
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
.gitarchive-info new file +2 -0
@@ -0,0 +1,2 @@ +Changeset: $Format:%H$ +Commit date: $Format:%cD$
.gitattributes new file +1 -0
@@ -0,0 +1 @@ +.gitarchive-info export-subst
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 03.11.16 at 18:57, <[email protected]> wrote:
When building Xen from a source tarball, commit information is usually lost, especially if the tarball was generated from a tag.
Quoted 8 lines
Have
git archiveautomatically 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 <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 11 lines · Andrew Cooper
When building Xen from a source tarball, commit information is usually lost, especially if the tarball was generated from a tag.
Have
git archiveautomatically 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 <[email protected]>
Quoted 11 lines
---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>It would be useful if this could be included in 4.8, and backported to older releases (Assuming noone has any objections)
Inclusion in 4.8 - fine by me. I will pick it up at some point.
Quoted 25 lines
--- .gitarchive-info | 2 ++ .gitattributes | 1 + 2 files changed, 3 insertions(+) create mode 100644 .gitarchive-info create mode 100644 .gitattributes.gitarchive-info new file +2
-0@@ -0,0 +1,2 @@ +Changeset: $Format:%H$ +Commit date: $Format:%cD$.gitattributes new file +1
-0@@ -0,0 +1 @@ +.gitarchive-info export-substSignature · 1 line
2.1.4
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Wei Liu
AppliedQuoted 24 lines · Wei Liu
Quoted 11 lines · Andrew Cooper
When building Xen from a source tarball, commit information is usually lost, especially if the tarball was generated from a tag.
Have
git archiveautomatically 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 <[email protected]>Acked-by Wei Liu <[email protected]>Quoted 9 lines
---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
Quoted 5 lines
Quoted 2 lines
It would be useful if this could be included in 4.8, and backported to older releases (Assuming noone has any objections)
Inclusion in 4.8 - fine by me. I will pick it up at some point.
Applied.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel