4 printf "%s++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" $blue
8 { IFS=:; set -- $KISS_PATH; unset IFS; }
12 git_root=$(git -C ${repo} rev-parse --show-toplevel)
13 if [ -f ${git_root}/update ]; then
14 shortlog=$(git -C ${git_root} log --pretty=oneline --follow -- update)
15 while IFS= read -r line; do
16 hash=$(echo ${line} | cut -d " " -f 1)
17 git -C ${git_root} show ${hash}:update | tail -n +2 > /tmp/kiss-mail
18 chmod +x /tmp/kiss-mail
21 printf "%sItem: %s\n" $blue $((i = i + 1))
22 git -C ${git_root} show -s ${hash} | \
23 awk -v blue="$blue" 'NR > 1 && NR < 4 {printf "%s%s\n", blue, $0}'
24 git -C ${git_root} log --format=${blue}"Topic: "%B -n 1 ${hash} | \
27 /tmp/kiss-mail | awk '{print}' # This normalizes the trailing newlines
36 get_mail | ${PAGER:-less -R}