dotfiles/.local/bin/scripts/git-ln

6 lines
229 B
Plaintext
Raw Normal View History

2021-07-05 17:59:15 +00:00
#!/bin/sh
2021-07-13 10:14:58 +00:00
set -o pipefail
2021-07-05 17:59:15 +00:00
upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null)
count=$(expr $a + 3 \& ${upCount:-0} \> 3 \| 6)
git --no-pager lo -$count --color=always --graph HEAD @{push} | head -9 || git --no-pager lo -7