Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果你运行arc cover它会告诉你谁最后编辑了你改变的行,这有利于决定谁应该是审阅者。
arc cover
有没有办法让 Arcanist 自动执行此操作,然后与这些人预先填充Reviewers:提交消息中的行?
Reviewers:
您可以使用这一行获得一个分隔的审阅者列表:
arc cover | grep '^[^ ]' | paste -s -d, -
您可以在创建差异时指定审阅者,使用该--reviewers选项。
--reviewers
因此,您应该能够执行以下操作:
arc diff --reviewers "$(arc cover | grep '^[^ ]' | paste -s -d, -)"
但这仅在您使用 Phabricator 用户名作为 git 作者姓名时才有效。