diff options
Diffstat (limited to 'contrib/kiss-maintainer')
-rwxr-xr-x | contrib/kiss-maintainer | 15 |
1 files 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 |