]> git.ipfire.org Git - thirdparty/git.git/commit
push: split switch cases
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 31 May 2021 19:51:14 +0000 (14:51 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:12:01 +0000 (10:12 +0900)
commit04159fba42b61ffa954dfb1fa13df1862c210ad8
tree1d125e46b967b87a1b7422ef8d3f2182c512cea6
parent72739680fc912c6e8dedaf06af4969f8e52ffb4d
push: split switch cases

We want all the cases that don't do anything with a branch first, and
then the rest. That way we will be able to get the branch and die if
there's a problem in the parent function, instead of inside the function
of each mode.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/push.c