summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-10-06 18:20:59 -0400
committerAndrew Cady <d@jerkface.net>2021-10-06 18:20:59 -0400
commit11bd399ec8720959d9df9aa924b94f191be79ecd (patch)
tree79b1582a606c0cf043b594760476b185d494872f
parent183dbd37be9ebbaea201a29083ffdc61c859f56e (diff)
even more beautiful output from git ll-remote
-rwxr-xr-xdot/local/bin/git-ll-remote6
1 files changed, 6 insertions, 0 deletions
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()
181 subj=${subj%??}... 181 subj=${subj%??}...
182 fi 182 fi
183 183
184 case "$SEEN_HASH" in
185 *" $hash "*) subj= author= when= ;;
186 esac
187 SEEN_HASH="$SEEN_HASH $hash "
188
184 printf "%-42s %17s %-${author_size}s %-$((subj_size + 1))s %10s %s\n" "$hash" "$when" "$author" "$subj" "($VERDICT)" "$ref" 189 printf "%-42s %17s %-${author_size}s %-$((subj_size + 1))s %10s %s\n" "$hash" "$when" "$author" "$subj" "($VERDICT)" "$ref"
185 listed=$((listed + 1)) 190 listed=$((listed + 1))
186 else 191 else
@@ -190,6 +195,7 @@ handle_hash_ref()
190 195
191read_hashes() 196read_hashes()
192{ 197{
198 local SEEN_HASH=
193 while read hash ref; do 199 while read hash ref; do
194 [ "$hash" != From ] || continue 200 [ "$hash" != From ] || continue
195 case "$ref" in 201 case "$ref" in