From dccd4404c4ab677480c0fe0aed0f1d3b82e4210b Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Tue, 25 Feb 2020 20:42:35 +0000 Subject: kiss-maintainer: Better output FossilOrigin-Name: 715cf8d3c647667648cd7b36f3885c18d1f81f238299ff88c97082b2ca3508c3 --- contrib/kiss-maintainer | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/contrib/kiss-maintainer b/contrib/kiss-maintainer index 55bcc5e..5039002 100755 --- a/contrib/kiss-maintainer +++ b/contrib/kiss-maintainer @@ -2,11 +2,12 @@ # # kiss-maintainer - find the maintainer of a package. -kiss s "$1" >/dev/null && { - for repo in $(kiss s "$1"); do cd "$repo" - maintainers=$(git log . 2>/dev/null | grep -F Author: | sort -u) +kiss s "$1" | while read -r repo; do cd "$repo" + m=$(git log -1 version 2>/dev/null) ||: + m=${m##*Author: } + m=${m%%>*} - [ "$maintainers" ] && - printf '=> %s\n%s\n' "$PWD" "$maintainers" - done -} + [ "$m" ] || continue + + printf '=> %s\n%s>\n' "$PWD" "$m" +done -- cgit v1.2.3