Ignore whitespace before and after git tags

オープン
#645 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
git, python
領域
cli, tooling

調査の方向性

pwclient の git-am エントリーポイントから始め、issue に示されている前後に空白を含む Reviewed-by タグを使って報告されたパッチを再現します。タグの解析が patchwork と pwclient のどちらに属するのかを判断し、その後、git-am がタグを保持することと、前後に空白のないタグも引き続き機能することを確認します。

索引モデルが issue の本文から書いたものです。

説明

NOTE: Experienced on old 2.2.0, maybe it has been fixed. Also I'm not sure if it is patchwork or pwclient issue.

Space before git tags (e.g. Reviewed-by: Li Wang <liwang@redhat.com>) causes pwclient git-am to ignore them.

See:
https://lore.kernel.org/ltp/CAEemH2dU6XP+Er75eERgo+p7TyMgEjMJY7tjAGA15NOKFrZM+A@mail.gmail.com/
https://patchwork.ozlabs.org/project/ltp/patch/20251010113014.309433-1-pvorel@suse.cz/#3595268

$ cat ~/.pwclientrc
[ozlabs]
url = https://patchwork.ozlabs.org/xmlrpc/
username: ...
password: ...

$ pwclient git-am 2148087 -p ozlabs
Applying patch #2148087 using "git am"
Description: tst_cmd.h: Convert the rest of comments to kerneldoc
Applying: tst_cmd.h: Convert the rest of comments to kerneldoc

$ git log -1
commit 980c30ad8042de6694be88866a0d668aa8748bc9 (HEAD -> xxx)
Author: Petr Vorel <pvorel@suse.cz>
Date:   Fri Oct 10 13:30:14 2025 +0200

    tst_cmd.h: Convert the rest of comments to kerneldoc
    
    Move docs from the private function implementations (functions with
    trailing underscore) to functions used into functions used in the new
    API.
    
    This avoids to document private functions.
    
    Signed-off-by: Petr Vorel <pvorel@suse.cz>
    Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>

=> There is no Reviewed-by: Li Wang <liwang@redhat.com>.

主要言語
Python
スター
317
フォーク
91
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getpatchwork/patchwork のほかの issue

getpatchwork/patchwork の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。