t/perf: don't depend on Git.pm
commit528d9e6d0190b0ab8fbbab0b7b1b68f512f5dfcd
authorJeff King <peff@peff.net>
Mon, 25 Nov 2019 16:47:20 +0000 (25 11:47 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Nov 2019 01:53:36 +0000 (27 10:53 +0900)
tree7ed441dd94c3fc0cf7288ec2df03cb577b0810f6
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
t/perf: don't depend on Git.pm

The perf suite's aggregate.perl depends on Git.pm, which is a mild
annoyance if you've built git with NO_PERL. It turns out that the only
thing we use it for is a single call of the command_oneline() helper.
We can just replace this with backticks or similar.

Annoyingly, perl has no backtick equivalent that avoids a shell eval,
which means our $arg would require quoting. This probably doesn't matter
for our purposes, but it's better to be safe and model good style. So
we'll just provide a short helper around open(), which takes its
arguments as a list.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/aggregate.perl