name-rev: factor out get_parent_name()
commitddc42ec786ab2b64ef70bbd1e456db423dae031e
authorRené Scharfe <l.s.r@web.de>
Tue, 4 Feb 2020 21:23:29 +0000 (4 22:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Feb 2020 18:24:15 +0000 (5 10:24 -0800)
treec3bf2f0e6af827f6dc962ccf7ea7290313f44dfd
parentf13ca7cef51cc709c645f9da97f09a150bdb2cac
name-rev: factor out get_parent_name()

Reduce nesting by moving code to come up with a name for the parent into
its own function.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/name-rev.c