Fix changelog-helper.sh
This commit is contained in:
parent
2b37ed9f21
commit
aae1e617a6
1 changed files with 11 additions and 4 deletions
|
@ -2,11 +2,11 @@
|
||||||
# generate preliminary list of changes since changelog
|
# generate preliminary list of changes since changelog
|
||||||
# was last modified
|
# was last modified
|
||||||
|
|
||||||
lastmod=`git log -n2 --format=oneline changelog | awk '{print $1;}'`
|
lastmod=`git log -n1 --format=oneline changelog.md | awk '{print $1;}'`
|
||||||
#git log --format=oneline $starthash..HEAD
|
files=`git ls-tree -r master --name-only | grep --invert-match '^test\/\|^data\/docx\/\|^data\/odt\/\|^data\/pptx\/\|^citeproc\/\|^data\/translations\/'`
|
||||||
files=`git ls-tree -r master --name-only`
|
|
||||||
for x in $files
|
for x in $files
|
||||||
do
|
do
|
||||||
|
echo $x 1>&2
|
||||||
commits=`git log -n1 $lastmod..HEAD $x`
|
commits=`git log -n1 $lastmod..HEAD $x`
|
||||||
if [ ! -z "$commits" ]
|
if [ ! -z "$commits" ]
|
||||||
then
|
then
|
||||||
|
@ -17,7 +17,14 @@ do
|
||||||
file=$x
|
file=$x
|
||||||
fi
|
fi
|
||||||
echo " * $file"
|
echo " * $file"
|
||||||
GIT_PAGER=cat git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' -- "$lastmod..HEAD" "$x"
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" "$x"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "test/" 1>&2
|
||||||
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" test/
|
||||||
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" data/docx/
|
||||||
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" data/odt/
|
||||||
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" data/pptx/
|
||||||
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" data/translations/
|
||||||
|
git log --pretty=format:'%n%w(78,4,6)+ %s (%aN)%n%n%w(78,6,6)%b%n' "$lastmod..HEAD" citeproc/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue