builtin-name-rev.c: split deeply nested part from the main function
commite8b55fab6237b30494aa1905c3209d5bf5494a29
authorJunio C Hamano <gitster@pobox.com>
Sat, 2 Aug 2008 18:04:22 +0000 (2 11:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 2 Aug 2008 18:04:22 +0000 (2 11:04 -0700)
treed1f354415742da127b0d35426686ad4115ec4b15
parente12455479651c3444aca9cf550b1e1beed1055a6
builtin-name-rev.c: split deeply nested part from the main function

The main function of this command implementation tries to do too many
things.  Split out a handling of single input line into a separate
function to reduce nesting level and clutter.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-name-rev.c