From: joshtriplett Date: Thu, 30 Aug 2007 02:32:29 +0000 (+0000) Subject: Use git-log rather than the shell, git-rev-list, and git-diff-tree. X-Git-Tag: 2.7~68 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/7144514b9390c090778d9767192facaa73b56ec1?ds=sidebyside Use git-log rather than the shell, git-rev-list, and git-diff-tree. Patch by Jamey Sharp . --- diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm index 0483e9b16..8db83233d 100644 --- a/IkiWiki/Rcs/git.pm +++ b/IkiWiki/Rcs/git.pm @@ -256,8 +256,7 @@ sub git_commit_info ($;$) { #{{{ $num ||= 1; my @raw_lines = - run_or_die(qq{git-rev-list --max-count=$num $sha1 | - git-diff-tree --stdin --pretty=raw --always -M -m -r}); + run_or_die('git-log', "--max-count=$num", '--pretty=raw', '--raw', '--abbrev=40', '--always', '-M', '-m', '-r', $sha1); my @ci; while (my $parsed = _parse_diff_tree(\@raw_lines)) {