Re: [PATCH v2 2/8] status: cleanup API to wt_status_print
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 25, 2016, 20:05 UTC
- Message-ID
- <xmqq7fc95vqa.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1469474750-49075-3-git-send-email-jeffhost@microsoft.com>
Jeff Hostetler <jeffhost@microsoft.com> writes:
Show 10 quoted lines
> Refactor the API between builtin/commit.c and wt-status.[ch]. > Hide details of the various wt_*status_print() routines inside > wt-status.c behind a single (new) wt_status_print() routine > and eliminate the switch statements from builtin/commit.c > > This will allow us to more easily add new status formats > and isolate that within wt-status.c > > Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> > ---
The division of labour between wt-status.c and cmd_status() that was originally envisioned was to have status computation in the former and presentation in the latter, but that was broken and more output is made from the latter these days, so I think it may make sense to admit that the original vision did not work out well, and this step is a good move forward to shift the boundary.