Gitコミットに使用するフォーマッタを探しています。par
私が望むことをほとんどしますが(重要な)制限は、コミットメッセージでよく見られる箇条書きリストの形式を正しく指定できないことです。
たとえば、
% export PARINIT="rTbgqR B=.,?'_A_a_@ Q=_s>|"
% par << EOF
heredoc> [JR-1234] This is a fix for the thing.
I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks.
- I am a developer that doesn't like linebreaks. I also like bullet lists. I like bullet lists a lot.
- I like bullet lists. I like bullet lists a lot. I am also a developer that doesn't like linebreaks.
I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks.
heredoc> EOF
結果は次のとおりです。
[JR-1234] This is a fix for the thing.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
- I am a developer that doesn't like linebreaks. I also like bullet
- lists. I like bullet lists a lot. I like bullet lists. I like
- bullet lists a lot. I am also a developer that doesn't like
- linebreaks.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
同時に、私は次のようなものが欲しい。
[JR-1234] This is a fix for the thing.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
- I am a developer that doesn't like linebreaks. I also like bullet
lists. I like bullet lists a lot.
- I like bullet lists. I like bullet lists a lot. I am also a
developer that doesn't like linebreaks.
I am a developer that doesn't like linebreaks. I am a developer that
doesn't like linebreaks. I am a developer that doesn't like linebreaks.
これはpar
理想的ですが、他の同等のスタンドアロンフォーマッタも機能します。
答え1
Pandocは次のことを行います。
$ pandoc -t plain <<EOF
> [JR-1234] This is a fix for the thing.
>
> I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks.
>
> - I am a developer that doesn't like linebreaks. I also like bullet lists. I like bullet lists a lot.
> - I like bullet lists. I like bullet lists a lot. I am also a developer that doesn't like linebreaks.
>
> I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks. I am a developer that doesn't like linebreaks.
> EOF
[JR-1234] This is a fix for the thing.
I am a developer that doesn’t like linebreaks. I am a developer that
doesn’t like linebreaks. I am a developer that doesn’t like linebreaks.
- I am a developer that doesn’t like linebreaks. I also like bullet
lists. I like bullet lists a lot.
- I like bullet lists. I like bullet lists a lot. I am also a
developer that doesn’t like linebreaks.
I am a developer that doesn’t like linebreaks. I am a developer that
doesn’t like linebreaks. I am a developer that doesn’t like linebreaks.