2021-09-21 20:51:19 +00:00
|
|
|
#!/bin/bash
|
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)
|
2022-03-06 21:04:22 +00:00
|
|
|
count=$(expr ${upCount:-0} + 3 \& ${upCount:-0} \> 3 \& ${upCount:-0} \< 6 \| 6)
|
2022-05-03 09:22:10 +00:00
|
|
|
git --no-pager lo -$count --color=always --graph HEAD @{upstream} "$@" || git --no-pager lo -7 "$@"
|