aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-changelog
blob: 8963d18f745e8d4f6d447b0eeed06632d748bbcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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