mirror of
https://github.com/acpica/acpica/
synced 2025-01-19 16:09:19 +03:00
5c55a3aed7
Update for use with CVS to use for git.
38 lines
970 B
Bash
Executable File
38 lines
970 B
Bash
Executable File
#!/bin/sh
|
|
|
|
old_release=$1
|
|
new_release=$2
|
|
|
|
commits="`git-rev-list --reverse $old_release..$new_release`"
|
|
commits_count="`git-rev-list --reverse $old_release..$new_release | wc -l`"
|
|
|
|
digit=1
|
|
while [ $commits_count -gt 9 ] ; do
|
|
(( commits_count = commits_count / 10 ))
|
|
(( digit = digit + 1 ))
|
|
done
|
|
|
|
num=0
|
|
|
|
for commit in $commits ; do
|
|
(( num = num + 1 ))
|
|
|
|
#create git log similar to cvs log, so we can reuse code in make-patches.pl
|
|
patchnum=`printf "%.${digit}d" $num`
|
|
echo "---------------------"
|
|
echo "PatchSet $patchnum"
|
|
|
|
format="Date: %ad%nAuthor: %an%nBranch: HEAD%nTag: (none)%nLog:%n%s"
|
|
|
|
body=`git show --pretty=format:"%b" $commit | grep "<unknown>"`
|
|
if [ -z "$body" ] ; then
|
|
format="$format%n%b"
|
|
fi
|
|
|
|
l=`git show --pretty=format:"${format}%n" $commit | grep -n "diff --git" | head -n 1 | awk -F: '{print $1}'`
|
|
if [ ! -z "$l" ] ; then
|
|
(( l = l - 1 ))
|
|
fi
|
|
git show --pretty=format:"${format}%n" $commit | head -n $l
|
|
done
|