From 8311da2376fa60ab66340e41bd2724b5508480c2 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Mon, 1 Sep 2025 10:36:07 +1000 Subject: [PATCH] make_tree_file: get_branches only returns git branches Also, just ignore local branches --- make_tree_file | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.47.3