blame: refactor porcelain output
commite86226e34097ce22ed78a9e759564110f141dda0
authorJeff King <peff@peff.net>
Mon, 9 May 2011 13:34:02 +0000 (9 09:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 May 2011 22:27:32 +0000 (9 15:27 -0700)
treead1241d90e0848b824202133807fe51715f80d4f
parent838466b8f7f9e8752a14114d5c4b1d685e0c6c25
blame: refactor porcelain output

This is in preparation for adding more porcelain output
options. The three changes are:

  1. emit_porcelain now receives the format option flags

  2. emit_one_suspect_detail takes an optional "repeat"
     parameter to suppress the "show only once" behavior

  3. The code for emitting porcelain suspect is factored
     into its own function for repeatability.

There should be no functional changes.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c