diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-31 12:53:23 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-31 13:03:41 -0400 |
commit | 26a0f21cf43ca05c5a8bc3cc984eb735303b1e43 (patch) | |
tree | f8e0616c7fb77c9d54e7b47dcad2ca20a9990e79 | |
parent | 06cbbf8020edb60dac8a7ab1bddd4bf830bcfc3a (diff) |
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.
-rwxr-xr-x | dot/local/bin/git-ll-remote | 6 |
1 files changed, 6 insertions, 0 deletions
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 | |||
26 | [ "$OPT_u" ] && SHOW=upto | 26 | [ "$OPT_u" ] && SHOW=upto |
27 | QUIET= | 27 | QUIET= |
28 | [ "$OPT_q" ] && QUIET=y | 28 | [ "$OPT_q" ] && QUIET=y |
29 | [ "$OPT_n" ] && NS_ONLY=y | ||
30 | [ "$OPT_N" ] && NS_ONLY= | ||
29 | 31 | ||
30 | show_message() | 32 | show_message() |
31 | { | 33 | { |
@@ -178,6 +180,10 @@ read_hashes() | |||
178 | { | 180 | { |
179 | while read hash ref; do | 181 | while read hash ref; do |
180 | [ "$hash" != From ] || continue | 182 | [ "$hash" != From ] || continue |
183 | case "$ref" in | ||
184 | refs/namespaces/*) ;; | ||
185 | *) [ ! "$NS_ONLY" ] || continue ;; | ||
186 | esac | ||
181 | handle_hash_ref "$hash" "$ref" | 187 | handle_hash_ref "$hash" "$ref" |
182 | done | 188 | done |
183 | } | 189 | } |