From bf1e9f774695ceb8bb0079c3c0d7bbcecf404b85 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 1 Aug 2011 14:33:43 +0200 Subject: [PATCH] NULL-separate commit fields when gathering data --- git-chart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-chart b/git-chart index bba02e6..253ebd1 100755 --- a/git-chart +++ b/git-chart @@ -63,11 +63,11 @@ sub gather_data($) { my @commits; - open my $fd, '-|', qw(git log --date=local), '--pretty=%ad,%s', @{$options->{cmdline}}; + open my $fd, '-|', qw(git log --date=local), '--pretty=%ad%x00%s', @{$options->{cmdline}}; die "failed to get revs" unless $fd; while (<$fd>) { chomp; - my ($date, $sub) = split ',', $_, 2; + my ($date, $sub) = split '\0', $_, 2; push @commits, str2time($date); -- 2.32.0.93.g670b81a890