From 8b262b3a460d93c055f5041332a2d1e56bccd977 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 6 May 2022 02:51:26 -0400 Subject: git-ll-remote: trim output --- dot/local/bin/git-ll-remote | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dot') 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() fi more=$(git show -s "$hash" --pretty='%ar:%cn') || exit IFS=: read when author <<< "$more" + when=${when% ago} subj=$(git show -s "$hash" --pretty='%s') author_size=13 @@ -186,7 +187,7 @@ handle_hash_ref() 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" + printf "%-42s %21s %-${author_size}s %-$((subj_size + 1))s %10s %s\n" "$hash" "$when" "$author" "$subj" "($VERDICT)" "$ref" listed=$((listed + 1)) else skipped=$((skipped + 1)) -- cgit v1.2.3