* [PATCH for-4.8] git: Add metadata to the result of `git archive`
@ 2016-11-03 17:57 Andrew Cooper
2016-11-04 7:48 ` Jan Beulich
2016-11-04 10:54 ` Wei Liu
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Cooper @ 2016-11-03 17:57 UTC (permalink / raw)
To: Xen-devel
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, Jan Beulich
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>
---
CC: George Dunlap <George.Dunlap@eu.citrix.com>
CC: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Jan Beulich <JBeulich@suse.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Tim Deegan <tim@xen.org>
CC: Wei Liu <wei.liu2@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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.8] git: Add metadata to the result of `git archive`
2016-11-03 17:57 [PATCH for-4.8] git: Add metadata to the result of `git archive` Andrew Cooper
@ 2016-11-04 7:48 ` Jan Beulich
2016-11-04 10:54 ` Wei Liu
1 sibling, 0 replies; 4+ messages in thread
From: Jan Beulich @ 2016-11-04 7:48 UTC (permalink / raw)
To: Andrew Cooper
Cc: Stefano Stabellini, WeiLiu, George Dunlap, Tim Deegan,
Ian Jackson, Xen-devel
>>> On 03.11.16 at 18:57, <andrew.cooper3@citrix.com> wrote:
> 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>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.8] git: Add metadata to the result of `git archive`
2016-11-03 17:57 [PATCH for-4.8] git: Add metadata to the result of `git archive` Andrew Cooper
2016-11-04 7:48 ` Jan Beulich
@ 2016-11-04 10:54 ` Wei Liu
2016-11-04 14:25 ` Wei Liu
1 sibling, 1 reply; 4+ messages in thread
From: Wei Liu @ 2016-11-04 10:54 UTC (permalink / raw)
To: Andrew Cooper
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Tim Deegan,
Ian Jackson, Xen-devel, Jan Beulich
On Thu, Nov 03, 2016 at 05:57:57PM +0000, Andrew Cooper wrote:
> 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: Wei Liu <wei.liu2@citrix.com>
> ---
> CC: George Dunlap <George.Dunlap@eu.citrix.com>
> CC: Ian Jackson <ian.jackson@eu.citrix.com>
> CC: Jan Beulich <JBeulich@suse.com>
> CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Tim Deegan <tim@xen.org>
> CC: Wei Liu <wei.liu2@citrix.com>
>
> 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.
> ---
> .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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH for-4.8] git: Add metadata to the result of `git archive`
2016-11-04 10:54 ` Wei Liu
@ 2016-11-04 14:25 ` Wei Liu
0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2016-11-04 14:25 UTC (permalink / raw)
To: Andrew Cooper
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Tim Deegan,
Ian Jackson, Xen-devel, Jan Beulich
On Fri, Nov 04, 2016 at 10:54:25AM +0000, Wei Liu wrote:
> On Thu, Nov 03, 2016 at 05:57:57PM +0000, Andrew Cooper wrote:
> > 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: Wei Liu <wei.liu2@citrix.com>
>
> > ---
> > CC: George Dunlap <George.Dunlap@eu.citrix.com>
> > CC: Ian Jackson <ian.jackson@eu.citrix.com>
> > CC: Jan Beulich <JBeulich@suse.com>
> > CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > CC: Stefano Stabellini <sstabellini@kernel.org>
> > CC: Tim Deegan <tim@xen.org>
> > CC: Wei Liu <wei.liu2@citrix.com>
> >
> > 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
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-04 14:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-03 17:57 [PATCH for-4.8] git: Add metadata to the result of `git archive` Andrew Cooper
2016-11-04 7:48 ` Jan Beulich
2016-11-04 10:54 ` Wei Liu
2016-11-04 14:25 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).