aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-changelog
blob: fd4daefa3296bacc6c1343e6c69618c357d91be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e
# Print the git log of the specific package

[ "$1" ] || {
    printf '\033[1;33m-> \033[musage: %s [pkg]\n' "${0##*/}"
    exit 0
}

kiss s "$1" >/dev/null
cd "$(kiss s "$1" | sed 1q)"

# Pipe to cat so it doesn't automatically paged
# by git.
git log --format='<%as> [%an] %s - %h' . | cat