]> granicus.if.org Git - postgresql/commit
Minor improvements to git_changelog.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Sep 2010 00:50:57 +0000 (20:50 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Sep 2010 00:50:57 +0000 (20:50 -0400)
commit901a5a786fa3cf107ceb11d2622cf8bb99221f3a
treebf9546e81f643da35e62e0dc06783695782de994
parentce1dcd468f8a728398424296165a8d87eb36f0d8
Minor improvements to git_changelog.

Avoid depending on Date::Calc, which isn't in a basic Perl installation,
when we can equally well use Time::Local which is.  Also fix the parsing
of timestamps to take heed of the timezone.  (It looks like cvs2git emitted
all commit timestamps with zone GMT, so this refinement might've looked
unnecessary when looking at converted data; but it's needed now.)

Fix parsing of message bodies so that blank lines that may or may not get
emitted by "git log" aren't confused with real data.  This avoids strange
formatting of the oldest commit on a branch.

Check child-process exit status, so that we actually notice if "git log"
fails, and so that we don't accumulate zombie children.
src/tools/git_changelog