* [Qemu-devel] [PATCH v3 0/2] Add git-publish config file
@ 2018-02-05 5:47 Fam Zheng
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file Fam Zheng
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Fam Zheng @ 2018-02-05 5:47 UTC (permalink / raw)
To: qemu-devel; +Cc: marcandre.lureau, mdroth, stefanha
v3: Fix trivial hunk placement. [Michael]
Fix PPC sub-list. [Michael]
v2: Add README paragraph [Marc-André, Stefan]
Fix 'trivial' profile [Marc-André]
Rename profiles [Stefan]
Fam Zheng (2):
Add a git-publish configuration file
README: Document 'git-publish' workflow
.gitpublish | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
README | 30 +++++++++++++++++++++++++++++-
2 files changed, 87 insertions(+), 1 deletion(-)
create mode 100644 .gitpublish
--
2.14.3
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file
2018-02-05 5:47 [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Fam Zheng
@ 2018-02-05 5:47 ` Fam Zheng
2018-02-05 10:09 ` Marc-André Lureau
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 2/2] README: Document 'git-publish' workflow Fam Zheng
2018-02-05 14:21 ` [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Stefan Hajnoczi
2 siblings, 1 reply; 6+ messages in thread
From: Fam Zheng @ 2018-02-05 5:47 UTC (permalink / raw)
To: qemu-devel; +Cc: marcandre.lureau, mdroth, stefanha
git-publish [1] is a convenient tool to send patches and has been
popular among QEMU developers. Recently it has been made available in
Fedora official repo thanks to Stefan's work.
One nice feature of the tool is a per-project configuration with
profiles, especially in which the cccmd option is a handy method to
create the Cc list.
[1]: https://github.com/stefanha/git-publish
Signed-off-by: Fam Zheng <famz@redhat.com>
---
.gitpublish | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
create mode 100644 .gitpublish
diff --git a/.gitpublish b/.gitpublish
new file mode 100644
index 0000000000..ed48f6e52c
--- /dev/null
+++ b/.gitpublish
@@ -0,0 +1,58 @@
+#
+# Common git-publish profiles that can be used to send patches to QEMU upstream.
+#
+# See https://github.com/stefanha/git-publish for more information
+#
+[gitpublishprofile "default"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "rfc"]
+base = master
+prefix = RFC PATCH
+to = qemu-devel@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "stable"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cc = qemu-stable@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "trivial"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cc = qemu-trivial@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "block"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cc = qemu-block@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "arm"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cc = qemu-arm@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "s390"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cc = qemu-s390@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "ppc"]
+base = master
+prefix = PATCH
+to = qemu-devel@nongnu.org
+cc = qemu-ppc@nongnu.org
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
--
2.14.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] [PATCH v3 2/2] README: Document 'git-publish' workflow
2018-02-05 5:47 [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Fam Zheng
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file Fam Zheng
@ 2018-02-05 5:47 ` Fam Zheng
2018-02-05 10:08 ` Marc-André Lureau
2018-02-05 14:21 ` [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Stefan Hajnoczi
2 siblings, 1 reply; 6+ messages in thread
From: Fam Zheng @ 2018-02-05 5:47 UTC (permalink / raw)
To: qemu-devel; +Cc: marcandre.lureau, mdroth, stefanha
Signed-off-by: Fam Zheng <famz@redhat.com>
---
README | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/README b/README
index b92a07a61a..d1a944ce20 100644
--- a/README
+++ b/README
@@ -56,7 +56,7 @@ The QEMU source code is maintained under the GIT version control system.
git clone git://git.qemu.org/qemu.git
-When submitting patches, the preferred approach is to use 'git
+When submitting patches, one common approach is to use 'git
format-patch' and/or 'git send-email' to format & send the mail to the
qemu-devel@nongnu.org mailing list. All patches submitted must contain
a 'Signed-off-by' line from the author. Patches should follow the
@@ -68,6 +68,34 @@ the QEMU website
https://qemu.org/Contribute/SubmitAPatch
https://qemu.org/Contribute/TrivialPatches
+A 'git-profile' utility was created to make above process less
+cumbersome, and is highly recommended for making regular contributions,
+or even just for sending consecutive patch series revisions. It also
+requires a working 'git send-email' setup, and by default doesn't
+automate everything, so you may want to go through the above steps
+manually for once.
+
+For installation instructions, please go to
+
+ https://github.com/stefanha/git-publish
+
+The workflow with 'git-publish' is:
+
+ $ git checkout master -b my-feature
+ $ # work on new commits, add your 'Signed-off-by' lines to each
+ $ git publish
+
+Your patch series will be sent and tagged as my-feature-v1 if you need to refer
+back to it in the future.
+
+Sending v2:
+
+ $ git checkout my-feature # same topic branch
+ $ # making changes to the commits (using 'git rebase', for example)
+ $ git publish
+
+Your patch series will be sent with 'v2' tag in the subject and the git tip
+will be tagged as my-feature-v2.
Bug reporting
=============
--
2.14.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v3 2/2] README: Document 'git-publish' workflow
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 2/2] README: Document 'git-publish' workflow Fam Zheng
@ 2018-02-05 10:08 ` Marc-André Lureau
0 siblings, 0 replies; 6+ messages in thread
From: Marc-André Lureau @ 2018-02-05 10:08 UTC (permalink / raw)
To: Fam Zheng; +Cc: QEMU, Michael Roth, Stefan Hajnoczi
On Mon, Feb 5, 2018 at 6:47 AM, Fam Zheng <famz@redhat.com> wrote:
> Signed-off-by: Fam Zheng <famz@redhat.com>
Looks good, thanks,
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> README | 30 +++++++++++++++++++++++++++++-
> 1 file changed, 29 insertions(+), 1 deletion(-)
>
> diff --git a/README b/README
> index b92a07a61a..d1a944ce20 100644
> --- a/README
> +++ b/README
> @@ -56,7 +56,7 @@ The QEMU source code is maintained under the GIT version control system.
>
> git clone git://git.qemu.org/qemu.git
>
> -When submitting patches, the preferred approach is to use 'git
> +When submitting patches, one common approach is to use 'git
> format-patch' and/or 'git send-email' to format & send the mail to the
> qemu-devel@nongnu.org mailing list. All patches submitted must contain
> a 'Signed-off-by' line from the author. Patches should follow the
> @@ -68,6 +68,34 @@ the QEMU website
> https://qemu.org/Contribute/SubmitAPatch
> https://qemu.org/Contribute/TrivialPatches
>
> +A 'git-profile' utility was created to make above process less
> +cumbersome, and is highly recommended for making regular contributions,
> +or even just for sending consecutive patch series revisions. It also
> +requires a working 'git send-email' setup, and by default doesn't
> +automate everything, so you may want to go through the above steps
> +manually for once.
> +
> +For installation instructions, please go to
> +
> + https://github.com/stefanha/git-publish
> +
> +The workflow with 'git-publish' is:
> +
> + $ git checkout master -b my-feature
> + $ # work on new commits, add your 'Signed-off-by' lines to each
> + $ git publish
> +
> +Your patch series will be sent and tagged as my-feature-v1 if you need to refer
> +back to it in the future.
> +
> +Sending v2:
> +
> + $ git checkout my-feature # same topic branch
> + $ # making changes to the commits (using 'git rebase', for example)
> + $ git publish
> +
> +Your patch series will be sent with 'v2' tag in the subject and the git tip
> +will be tagged as my-feature-v2.
>
> Bug reporting
> =============
> --
> 2.14.3
>
--
Marc-André Lureau
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file Fam Zheng
@ 2018-02-05 10:09 ` Marc-André Lureau
0 siblings, 0 replies; 6+ messages in thread
From: Marc-André Lureau @ 2018-02-05 10:09 UTC (permalink / raw)
To: Fam Zheng; +Cc: QEMU, Michael Roth, Stefan Hajnoczi
Hi
On Mon, Feb 5, 2018 at 6:47 AM, Fam Zheng <famz@redhat.com> wrote:
> git-publish [1] is a convenient tool to send patches and has been
> popular among QEMU developers. Recently it has been made available in
> Fedora official repo thanks to Stefan's work.
>
> One nice feature of the tool is a per-project configuration with
> profiles, especially in which the cccmd option is a handy method to
> create the Cc list.
>
> [1]: https://github.com/stefanha/git-publish
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
pretty good set of default profiles,
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> .gitpublish | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 58 insertions(+)
> create mode 100644 .gitpublish
>
> diff --git a/.gitpublish b/.gitpublish
> new file mode 100644
> index 0000000000..ed48f6e52c
> --- /dev/null
> +++ b/.gitpublish
> @@ -0,0 +1,58 @@
> +#
> +# Common git-publish profiles that can be used to send patches to QEMU upstream.
> +#
> +# See https://github.com/stefanha/git-publish for more information
> +#
> +[gitpublishprofile "default"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "rfc"]
> +base = master
> +prefix = RFC PATCH
> +to = qemu-devel@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "stable"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cc = qemu-stable@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "trivial"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cc = qemu-trivial@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "block"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cc = qemu-block@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "arm"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cc = qemu-arm@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "s390"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cc = qemu-s390@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> +
> +[gitpublishprofile "ppc"]
> +base = master
> +prefix = PATCH
> +to = qemu-devel@nongnu.org
> +cc = qemu-ppc@nongnu.org
> +cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
> --
> 2.14.3
>
--
Marc-André Lureau
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH v3 0/2] Add git-publish config file
2018-02-05 5:47 [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Fam Zheng
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file Fam Zheng
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 2/2] README: Document 'git-publish' workflow Fam Zheng
@ 2018-02-05 14:21 ` Stefan Hajnoczi
2 siblings, 0 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2018-02-05 14:21 UTC (permalink / raw)
To: Fam Zheng; +Cc: qemu-devel, marcandre.lureau, mdroth
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
On Mon, Feb 05, 2018 at 01:47:23PM +0800, Fam Zheng wrote:
> v3: Fix trivial hunk placement. [Michael]
> Fix PPC sub-list. [Michael]
>
> v2: Add README paragraph [Marc-André, Stefan]
> Fix 'trivial' profile [Marc-André]
> Rename profiles [Stefan]
>
> Fam Zheng (2):
> Add a git-publish configuration file
> README: Document 'git-publish' workflow
>
> .gitpublish | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> README | 30 +++++++++++++++++++++++++++++-
> 2 files changed, 87 insertions(+), 1 deletion(-)
> create mode 100644 .gitpublish
>
> --
> 2.14.3
I fixed two small issues in README when applying:
s/git-profile/git-publish/ and s/for once/the first time/
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-02-05 14:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-05 5:47 [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Fam Zheng
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 1/2] Add a git-publish configuration file Fam Zheng
2018-02-05 10:09 ` Marc-André Lureau
2018-02-05 5:47 ` [Qemu-devel] [PATCH v3 2/2] README: Document 'git-publish' workflow Fam Zheng
2018-02-05 10:08 ` Marc-André Lureau
2018-02-05 14:21 ` [Qemu-devel] [PATCH v3 0/2] Add git-publish config file Stefan Hajnoczi
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).