From 26a0f21cf43ca05c5a8bc3cc984eb735303b1e43 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 31 May 2020 12:53:23 -0400 Subject: git-ll-remote: add -n/-N, making -n default This restores the default behavior (changed in yesterday's commits) of only showing refs/namespaces/* branches. --- dot/local/bin/git-ll-remote | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot/local/bin/git-ll-remote b/dot/local/bin/git-ll-remote index efb6c02..f7955d2 100755 --- a/dot/local/bin/git-ll-remote +++ b/dot/local/bin/git-ll-remote @@ -26,6 +26,8 @@ SHOW=ahead [ "$OPT_u" ] && SHOW=upto QUIET= [ "$OPT_q" ] && QUIET=y +[ "$OPT_n" ] && NS_ONLY=y +[ "$OPT_N" ] && NS_ONLY= show_message() { @@ -178,6 +180,10 @@ read_hashes() { while read hash ref; do [ "$hash" != From ] || continue + case "$ref" in + refs/namespaces/*) ;; + *) [ ! "$NS_ONLY" ] || continue ;; + esac handle_hash_ref "$hash" "$ref" done } -- cgit v1.2.3