qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/2] Add git-publish config file
@ 2018-02-26  3:03 Fam Zheng
  2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 1/2] Add a git-publish configuration file Fam Zheng
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fam Zheng @ 2018-02-26  3:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcandre.lureau, f4bug, stefanha, pbonzini, eblake, mdroth

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=true, Size: 584 bytes --]

v4: Fix prefixes. [Stefan]
    Keep rich profiles. [Paolo]

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 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 README      | 31 ++++++++++++++++++++++++++++++-
 2 files changed, 81 insertions(+), 1 deletion(-)
 create mode 100644 .gitpublish

-- 
2.14.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PATCH v4 1/2] Add a git-publish configuration file
  2018-02-26  3:03 [Qemu-devel] [PATCH v4 0/2] Add git-publish config file Fam Zheng
@ 2018-02-26  3:03 ` Fam Zheng
  2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 2/2] README: Document 'git-publish' workflow Fam Zheng
  2018-02-27 17:34 ` [Qemu-devel] [PATCH v4 0/2] Add git-publish config file Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Fam Zheng @ 2018-02-26  3:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcandre.lureau, f4bug, stefanha, pbonzini, eblake, mdroth

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/Debian official repo.

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 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 .gitpublish

diff --git a/.gitpublish b/.gitpublish
new file mode 100644
index 0000000000..a13f8c7c0e
--- /dev/null
+++ b/.gitpublish
@@ -0,0 +1,51 @@
+#
+# 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
+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
+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
+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
+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
+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
+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
+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] 4+ messages in thread

* [Qemu-devel] [PATCH v4 2/2] README: Document 'git-publish' workflow
  2018-02-26  3:03 [Qemu-devel] [PATCH v4 0/2] Add git-publish config file Fam Zheng
  2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 1/2] Add a git-publish configuration file Fam Zheng
@ 2018-02-26  3:03 ` Fam Zheng
  2018-02-27 17:34 ` [Qemu-devel] [PATCH v4 0/2] Add git-publish config file Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Fam Zheng @ 2018-02-26  3:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcandre.lureau, f4bug, stefanha, pbonzini, eblake, mdroth

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 README | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/README b/README
index 2c8e1c8cc4..7833b97365 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
@@ -73,6 +73,35 @@ The QEMU website is also maintained under source control.
   git clone git://git.qemu.org/qemu-web.git
   https://www.qemu.org/2017/02/04/the-new-qemu-website-is-up/
 
+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] 4+ messages in thread

* Re: [Qemu-devel] [PATCH v4 0/2] Add git-publish config file
  2018-02-26  3:03 [Qemu-devel] [PATCH v4 0/2] Add git-publish config file Fam Zheng
  2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 1/2] Add a git-publish configuration file Fam Zheng
  2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 2/2] README: Document 'git-publish' workflow Fam Zheng
@ 2018-02-27 17:34 ` Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2018-02-27 17:34 UTC (permalink / raw)
  To: Fam Zheng; +Cc: qemu-devel, marcandre.lureau, f4bug, pbonzini, eblake, mdroth

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

On Mon, Feb 26, 2018 at 11:03:24AM +0800, Fam Zheng wrote:
> v4: Fix prefixes. [Stefan]
>     Keep rich profiles. [Paolo]
> 
> 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 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  README      | 31 ++++++++++++++++++++++++++++++-
>  2 files changed, 81 insertions(+), 1 deletion(-)
>  create mode 100644 .gitpublish
> 
> -- 
> 2.14.3
> 

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] 4+ messages in thread

end of thread, other threads:[~2018-02-27 17:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26  3:03 [Qemu-devel] [PATCH v4 0/2] Add git-publish config file Fam Zheng
2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 1/2] Add a git-publish configuration file Fam Zheng
2018-02-26  3:03 ` [Qemu-devel] [PATCH v4 2/2] README: Document 'git-publish' workflow Fam Zheng
2018-02-27 17:34 ` [Qemu-devel] [PATCH v4 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).