]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Avoid showing parents before children in generated changelogs
authorKacper Kornet <draenog@pld-linux.org>
Thu, 12 Jul 2012 20:08:21 +0000 (21:08 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 12 Jul 2012 20:08:21 +0000 (21:08 +0100)
builder.sh

index 949ea3a3bcdeff0b3ead96b929fbdb6d8dcf5411..431268087ea2ebdfc56ec56b6e8476843de3eb5a 100755 (executable)
@@ -450,7 +450,7 @@ insert_gitlog() {
        # http://rpm.org/gitweb?p=rpm.git;a=blob;f=build/parseChangelog.c#l31
        # NOTE: changelog date is always in UTC for rpmbuild
        # * 1265749244 +0000 Random Hacker <nikt@pld-linux.org> 9370900
-       git rev-list -${log_entries:-20} HEAD | while read sha1; do
+       git rev-list --date-order -${log_entries:-20} HEAD | while read sha1; do
                local logfmt='%B%n'
                git notes list $sha1 > /dev/null 2>&1 && logfmt=%N
                git log -n 1 $sha1 --format=format:"* %ad %an <%ae> %h%n${logfmt}%n" --date=raw | sed '/^$/q'
This page took 0.043357 seconds and 4 git commands to generate.