瀏覽代碼

~/.bin/git-ln: A `git log` bealike that reverse numbers the commits.

Sort of similar to the output of another similar tool for another VCS
from the dark ages (\*cough\* SVN \*cough\*).
Lucas Stadler 13 年之前
父節點
當前提交
be3f128b40
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      .bin/git-ln

+ 8 - 0
.bin/git-ln

@ -0,0 +1,8 @@
1
#!/bin/sh
2
3
# Show a numbered git log (latest commit gets highest number).
4
5
git log --all > ~/.git-ln.tmp
6
sed = ~/.git-ln.tmp | sed -n 'p;n' | tac > ~/.git-ln.tmp2
7
git log $@ > ~/.git-ln.tmp
8
paste ~/.git-ln.tmp{2,} | less