From patchwork Wed Aug 2 12:29:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Add info about Patchwork to README.md From: Dominik Heidler X-Patchwork-Id: 416 Message-Id: <20170802122944.2888-1-dominik@heidler.eu> To: franken-dev@freifunk.net Date: Wed, 2 Aug 2017 14:29:44 +0200 --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 180f2a6..6a36842 100644 --- a/README.md +++ b/README.md @@ -134,3 +134,24 @@ Nun kann man mit `git status` die Änderungen sehen. Mit `git add` staged man di ### Patch schicken Auf der Mailingliste franken-dev@freifunk.net kannst du natürlich jederzeit Fragen stellen, falls etwas nicht klar sein sollte. + +### Patches von Mailingliste anwenden +Alle Patches, die an die franken-dev@freifunk.net Mailingliste geschickt werden, tauchen automatisch im Patchwork System unter https://pw.freifunk-franken.de/ auf. Auch Antworten auf die Patch-Mails (insbesondere `Reviewed-By` tags) werden im Patchwork aufgeführt. +Wenn ein Patch im GIT eingespielt wird, wird der Patch (im Idealfall automatisch) auch im Patchwork als eingespielt markiert. + +Um Patches aus dem Patchwork anzuwenden, sind folgende Schritte notwendig: +``` +sudo apt-get install python-git python-requests +sudo wget https://raw.githubusercontent.com/asdil12/patchwork/git-pw-utf8/git-pw/git-pw -O /usr/local/bin/git-pw +sudo chmod +x /usr/local/bin/git-pw + +# Im firmware git repo +git config patchwork.default.url https://pw.freifunk-franken.de/ +git config patchwork.default.project firmware + +# Patchsets auflisten +git pw list + +# Patchset #47 auf aktuellen branch anwenden +git pw as 47 +```