aboutsummaryrefslogtreecommitdiff
path: root/t/perf/aggregate.perl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-02-06 03:13:12 -0500
committerJunio C Hamano <gitster@pobox.com>2012-02-06 10:00:42 -0800
commitca51699961664890fdaabd276af539e6b3514053 (patch)
tree8ba79c2a018508e338d0fee3885fda0f562cda53 /t/perf/aggregate.perl
parentf174a2583c9f42315b60205890fa67a79a1f1669 (diff)
downloadgit-ca51699961664890fdaabd276af539e6b3514053.tar.gz
git-ca51699961664890fdaabd276af539e6b3514053.tar.xz
tag: fix output of "tag -n" when errors occur
When "git tag" is instructed to print lines from annotated tags via "-n", it first prints the tag name, then attempts to parse and print the lines of the tag object, and then finally adds a trailing newline. If an error occurs, we return early from the function and never print the newline, screwing up the output for the next tag. Let's factor the line-printing into its own function so we can manage the early returns better, and make sure that we always terminate the line. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/aggregate.perl')
0 files changed, 0 insertions, 0 deletions