Skip to contentSkip to conversation

git: Add metadata to the result of `git archive`

PATCH Applied Andrew Cooper 3 participants 4 messages Nov 3, 2016 – Nov 4, 2016

lore
Share & tools
lore
#0 lore raw

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
new file mode 100644
index 0000000..83e5b86
@@ -0,0 +1,2 @@
+Changeset: $Format:%H$
+Commit date: $Format:%cD$
.gitattributes new file +1 -0
new file mode 100644
index 0000000..f7bf506
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 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.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
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 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.

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
new file mode 100644
index 0000000..83e5b86
@@ -0,0 +1,2 @@
+Changeset: $Format:%H$
+Commit date: $Format:%cD$
.gitattributes new file +1 -0
new file mode 100644
index 0000000..f7bf506
@@ -0,0 +1 @@
+.gitarchive-info export-subst
Signature · 1 line
2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Applied
#3 lore raw
Quoted 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 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.

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