launch_editor: refactor to use start/finish_command
authorJeff King <peff@peff.net>
Fri, 30 Nov 2012 22:41:04 +0000 (17:41 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Dec 2012 10:05:41 +0000 (02:05 -0800)
commitf42ca31d8d209a43342ea345a52fc0bd43d71cc8
tree3fa4332871deeae46e64b6dcc20efa12b04137b3
parent13274526c1fc62fd0f15fe2bc188843982f38ec9
launch_editor: refactor to use start/finish_command

The launch_editor function uses the convenient run_command_*
interface. Let's use the more flexible start_command and
finish_command functions, which will let us manipulate the
parent state while we're waiting for the child to finish.

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