diff options
author | Jeff King <peff@peff.net> | 2012-02-06 03:13:12 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-06 10:00:42 -0800 |
commit | ca51699961664890fdaabd276af539e6b3514053 (patch) | |
tree | 8ba79c2a018508e338d0fee3885fda0f562cda53 /t/valgrind | |
parent | Git 1.7.6.6 (diff) | |
download | tgif-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/valgrind')
0 files changed, 0 insertions, 0 deletions