From: Stephen Rothwell Date: Mon, 1 Sep 2025 00:36:07 +0000 (+1000) Subject: make_tree_file: get_branches only returns git branches X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=8311da2376fa60ab66340e41bd2724b5508480c2;p=next-scripts make_tree_file: get_branches only returns git branches Also, just ignore local branches --- diff --git a/make_tree_file b/make_tree_file index a6a8b08..cffe98a 100755 --- a/make_tree_file +++ b/make_tree_file @@ -23,17 +23,19 @@ mkdir Next 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