author | Junio C Hamano <junkio@cox.net> | |
Tue, 21 Feb 2006 09:07:57 +0000 (01:07 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 21 Feb 2006 09:07:57 +0000 (01:07 -0800) |
* pj/portable:
Makefile tweaks: Solaris 9+ dont need iconv / move up uname variables
Merge part of jc/portable branch
git-mktree: reverse of git-ls-tree.
Merge branch 'lt/merge-tree'
Merge branch 'jc/ident'
cherry-pick/revert: error-help message rewording.
Fix fmt-merge-msg counting.
Makefile tweaks: Solaris 9+ dont need iconv / move up uname variables
Merge part of jc/portable branch
git-mktree: reverse of git-ls-tree.
Merge branch 'lt/merge-tree'
Merge branch 'jc/ident'
cherry-pick/revert: error-help message rewording.
Fix fmt-merge-msg counting.
1 | 2 | |||
---|---|---|---|---|
Makefile | patch | | diff1 | | diff2 | | blob | history |
git-fmt-merge-msg.perl | patch | | diff1 | | diff2 | | blob | history |
diff --cc Makefile
Simple merge
diff --cc git-fmt-merge-msg.perl
index a77e94eb5a8933cb43c8aa0707a7a345f14e97f5,3de67d779044ca0a9a511eded6929b3c33ddcd1f..c13af4884abc9371250687cb2ab25b66a91acc48
+++ b/git-fmt-merge-msg.perl
}
sub shortlog {
- my ($tip, $limit) = @_;
+ my ($tip) = @_;
my ($fh, @result);
- open $fh, '-|', ('git-log', '--topo-order',
- '--pretty=oneline', $tip, '^HEAD')
- or die "$!";
+ my $pid = open($fh, '-|');
+ die "$!" unless defined $pid;
+ if (!$pid) {
- exec('git-log', "--max-count=$limit", '--topo-order',
++ exec('git-log', '--topo-order',
+ '--pretty=oneline', $tip, '^HEAD') or die "$!";
+ }
while (<$fh>) {
s/^[0-9a-f]{40}\s+//;
push @result, $_;