【发布时间】:2011-04-07 13:22:13
【问题描述】:
我有一个简单的别名来显示几个最后的提交:
log --pretty=format:'%h %an %s' -10
如何使结果显示在列中,如下所示:
898e8789 Author1 Commit message here
803e8759 Other Author name Commit message here
【问题讨论】:
-
如果有一个罐装的 Unix 实用程序可以做到这一点,我很想知道它!我能想到的最好的事情是 Perl 格式的输出,这很痛苦。
-
@Zack: man column 是你的朋友。
-
不幸的是,这似乎是一种 BSD 主义。
-
它在 util-linux 包中。