From: Ian Jackson Date: Sun, 18 Sep 2016 12:26:01 +0000 (+0100) Subject: Changelog handling: Replace a call to parsechangelog with commit_getclogp X-Git-Tag: archive/debian/2.0~158 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=eefe676b1f2bb245710f17e7b7694b420d0a00db Changelog handling: Replace a call to parsechangelog with commit_getclogp This is less code, and takes advantage of the memoisation. No overall functional change. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index e125922e..13d17eae 100755 --- a/dgit +++ b/dgit @@ -2127,10 +2127,7 @@ END if (defined $skew_warning_vsn) { mkpath '.git/dgit'; printdebug "SKEW CHECK WANT $skew_warning_vsn\n"; - my $clogf = ".git/dgit/changelog.tmp"; - runcmd shell_cmd "exec >$clogf", - @git, qw(cat-file blob), "$hash:debian/changelog"; - my $gotclogp = parsechangelog("-l$clogf"); + my $gotclogp = commit_getclogp($hash); my $got_vsn = getfield $gotclogp, 'Version'; printdebug "SKEW CHECK GOT $got_vsn\n"; if (version_compare($got_vsn, $skew_warning_vsn) < 0) {