Skip to contentSkip to conversation

Add git-publish config file

PATCH Applied Fam Zheng 2 participants 4 messages Feb 26, 2018 – Feb 27, 2018

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

v4 cover Add git-publish config file

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
Signature · 1 line
2.14.3
author
#1 lore raw

PATCH v4 1/2 Add a git-publish configuration file

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

---
 .gitpublish | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 .gitpublish
.gitpublish new file +51 -0
new file mode 100644
index 0000000000..a13f8c7c0e
@@ -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 = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "rfc"]
+base = master
+prefix = RFC PATCH
+to = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "stable"]
+base = master
+to = [email protected]
+cc = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "trivial"]
+base = master
+to = [email protected]
+cc = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "block"]
+base = master
+to = [email protected]
+cc = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "arm"]
+base = master
+to = [email protected]
+cc = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "s390"]
+base = master
+to = [email protected]
+cc = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
+
+[gitpublishprofile "ppc"]
+base = master
+to = [email protected]
+cc = [email protected]
+cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
Signature · 1 line
2.14.3
author
#2 lore raw

PATCH v4 2/2 README: Document 'git-publish' workflow

In reply to Fam Zheng
---
 README | 31 ++++++++++++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)
README +30 -1
index 2c8e1c8cc4..7833b97365 100644
@@ -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
 [email protected] 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
 =============
 
Signature · 1 line
2.14.3
#3 lore raw
In reply to Fam Zheng
Quoted 10 lines · Fam Zheng

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]

Quoted 12 lines

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
Signature · 1 line
2.14.3

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan