25 lines
487 B
Bash
25 lines
487 B
Bash
#!/bin/sh
|
|
|
|
GLO="git log --format=-%x20%s"
|
|
|
|
VT=`git tag --sort=-version:refname -l`
|
|
VH=""
|
|
if [ "$1" != "" ]; then VH="HEAD"; fi
|
|
V2=""
|
|
for V1 in $1 $VT
|
|
do
|
|
if [ "$V2" != "" ]; then
|
|
if [ "$VH" = "HEAD" ]; then
|
|
VD="$VH"
|
|
else
|
|
VD="$V2"
|
|
VH="$V2"
|
|
fi
|
|
D=$(git show -s --format=%cs $VD^{commit})
|
|
printf "\ne16 %s - %s\n------------------------\n" "$V2" "$D"
|
|
$GLO $V1..$VH
|
|
VH=""
|
|
fi
|
|
V2="$V1"
|
|
done
|