printf '%s%s%s\n' 'Name' "$tab" 'Url'
printf '%s%s%s\n' '----' "$tab" '---'
+ # Use get_branches "$@" if function's $1 should mean script's $1
+ # shellcheck disable=SC2119
for name in $(get_branches); do
tab="$_TAB"
if [ ${#name} -lt 8 ]; then
tab="$tab$_TAB"
fi
- type=$(get_type "$name")
url=$(get_url "$name")
- if [ "$type" = "git" ] && ! [ "$url" = 'linux-next' ]; then
- ref=$(get_remote_branch "$name")
- url="$url#$ref"
+ if [ "$url" = 'linux-next' ]; then
+ continue
fi
+ ref=$(get_remote_branch "$name")
+ url="$url#$ref"
printf '%s%s%s\n' "$name" "$tab" "$url"
done
) >Next/Trees