summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-05-06 02:51:26 -0400
committerAndrew Cady <d@jerkface.net>2022-10-09 13:53:09 -0400
commit8b262b3a460d93c055f5041332a2d1e56bccd977 (patch)
tree59a3a86e57e599be9e033daa3e8d49742d17b482
parent20a8b880aff9582ad3ad2201be1b9de43d60f513 (diff)
git-ll-remote: trim output
-rwxr-xr-xdot/local/bin/git-ll-remote3
1 files changed, 2 insertions, 1 deletions
diff --git a/dot/local/bin/git-ll-remote b/dot/local/bin/git-ll-remote
index 666f222..76feada 100755
--- a/dot/local/bin/git-ll-remote
+++ b/dot/local/bin/git-ll-remote
@@ -166,6 +166,7 @@ handle_hash_ref()
166 fi 166 fi
167 more=$(git show -s "$hash" --pretty='%ar:%cn') || exit 167 more=$(git show -s "$hash" --pretty='%ar:%cn') || exit
168 IFS=: read when author <<< "$more" 168 IFS=: read when author <<< "$more"
169 when=${when% ago}
169 subj=$(git show -s "$hash" --pretty='%s') 170 subj=$(git show -s "$hash" --pretty='%s')
170 171
171 author_size=13 172 author_size=13
@@ -186,7 +187,7 @@ handle_hash_ref()
186 esac 187 esac
187 SEEN_HASH="$SEEN_HASH $hash " 188 SEEN_HASH="$SEEN_HASH $hash "
188 189
189 printf "%-42s %17s %-${author_size}s %-$((subj_size + 1))s %10s %s\n" "$hash" "$when" "$author" "$subj" "($VERDICT)" "$ref" 190 printf "%-42s %21s %-${author_size}s %-$((subj_size + 1))s %10s %s\n" "$hash" "$when" "$author" "$subj" "($VERDICT)" "$ref"
190 listed=$((listed + 1)) 191 listed=$((listed + 1))
191 else 192 else
192 skipped=$((skipped + 1)) 193 skipped=$((skipped + 1))