]> git.ipfire.org Git - thirdparty/git.git/commit
name-rev: cleanup name_ref()
authorSZEDER Gábor <szeder.dev@gmail.com>
Mon, 9 Dec 2019 11:52:58 +0000 (12:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2019 21:33:01 +0000 (13:33 -0800)
commit2866fd284c57d729d486ed93a7fc118f78e765cb
treed8d6cec474450479f3d73e01c1815b7164098148
parent49f7a2fde98e375562c2f8f2e3e3effba70d0402
name-rev: cleanup name_ref()

Earlier patches in this series moved a couple of conditions from the
recursive name_rev() function into its caller name_ref(), for no other
reason than to make eliminating the recursion a bit easier to follow.

Since the previous patch name_rev() is not recursive anymore, so let's
move all those conditions back into name_rev().

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/name-rev.c