我正在使用 1.8.3 版的 mysysgit,似乎 --oneline 命令每次提交都没有给我一行,我也得到了所有的差异行。
git show HEAD --oneline
乃至git show HEAD --pretty="%h %s"
不要只给一行。
(注意:使用 git bash 和 posh git 的结果相同)
我想要 show --oneline 的原因是我想将 rev-list 查询的结果从 posh git 传递到它。
git rev-list <somestuff> | %{git show $_ --oneline}