From 11bd399ec8720959d9df9aa924b94f191be79ecd Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 6 Oct 2021 18:20:59 -0400 Subject: even more beautiful output from git ll-remote --- 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 a39ec3f..666f222 100755 --- a/dot/local/bin/git-ll-remote +++ b/dot/local/bin/git-ll-remote @@ -181,6 +181,11 @@ handle_hash_ref() subj=${subj%??}... fi + case "$SEEN_HASH" in + *" $hash "*) subj= author= when= ;; + esac + SEEN_HASH="$SEEN_HASH $hash " + printf "%-42s %17s %-${author_size}s %-$((subj_size + 1))s %10s %s\n" "$hash" "$when" "$author" "$subj" "($VERDICT)" "$ref" listed=$((listed + 1)) else @@ -190,6 +195,7 @@ handle_hash_ref() read_hashes() { + local SEEN_HASH= while read hash ref; do [ "$hash" != From ] || continue case "$ref" in -- cgit v1.2.3