builtin/apply: make gitdiff_verify_name() return void
authorChristian Couder <christian.couder@gmail.com>
Wed, 11 May 2016 13:16:12 +0000 (15:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 May 2016 19:07:11 +0000 (12:07 -0700)
commit12913a78cedc491f89a34ab0b545831d6006fc98
tree78be9743a83b20b137efafef37aa423b4141c65c
parent5fe494c54ae44ae01a8efa91d00ac9d4c1c475e9
builtin/apply: make gitdiff_verify_name() return void

As the value returned by gitdiff_verify_name() is put into the
same variable that is passed as a parameter to this function,
it is simpler to pass the address of the variable and have
gitdiff_verify_name() change the variable itself.

This also makes it possible to later have this function return
-1 instead of die()ing in case of error.

Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c