![script/get_maintainer.pl 출력을 mutt 또는 git-send 이메일 입력으로 변환하는 방법은 무엇입니까?](https://linux55.com/image/136405/script%2Fget_maintainer.pl%20%EC%B6%9C%EB%A0%A5%EC%9D%84%20mutt%20%EB%98%90%EB%8A%94%20git-send%20%EC%9D%B4%EB%A9%94%EC%9D%BC%20%EC%9E%85%EB%A0%A5%EC%9C%BC%EB%A1%9C%20%EB%B3%80%ED%99%98%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
하나를 만든 .patch
후 다음을 수행합니다.
scripts/get_maintainer.pl 0001-my-patch.patch
이는 다음 형식으로 출력됩니다.
Josh Poimboeuf <[email protected]> (maintainer:LIVE PATCHING)
Jessica Yu <[email protected]> (maintainer:LIVE PATCHING)
[email protected] (open list:BPF (Safe dynamic programs and tools))
[email protected] (open list:LIVE PATCHING)
리눅스 v4.17에서.
mutt
해당 출력을 복사 하여 git send-email
붙여넣는 시간을 절약 할 수 있는 방법이 있습니까 ?
도움말은 힌트를 제공합니다.
Using "--roles" or "--rolestats" with git send-email --cc-cmd or any
other automated tools that expect only ["name"] <email address>
may not work because of additional output after <email address>.
하지만 다른 사람들의 시간을 절약하기 위해 여기에 명확하게 문서화해 보겠습니다.
답변1
커널 문서이 작업은 수동으로 수행하는 것이 좋습니다., 에서 출력한 역할을 사용하여 get_maintainer.pl
포함할 수신자를 결정합니다.
그러나 이것이 옳은 일이라는 것을 알고 있다면 get_maintainer.pl
MUA에 대한 입력으로 사용할 수 있는 출력을 생성하도록 하거나 및 옵션을 git send-email
추가할 수 있습니다 .--no-rolestats
--separator=,
scripts/get_maintainer.pl --separator=, --no-rolestats 0001-my-patch.patch
cc-cmd
이를 사용하여 CC를 작성할 수 있습니다 .
git send-email --cc-cmd="scripts/get_maintainer.pl --separator=, --no-rolestats" 0001-my-patch.patch
그러나 이렇게 하면 메일링 리스트가 삭제되고 기본 수신자(관리자와 최소한 하나의 메일링 리스트가 포함되어야 함)를 입력하는 데 도움이 되지 않습니다. 요구 사항에 따라 복사 및 붙여넣기 시간을 절약할 수 있습니다.