diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-08-27 01:37:56 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-27 15:33:40 -0700 |
commit | 2b318aa6c3566ad65d9547f42828f277955e6519 (patch) | |
tree | 9bcebc2372ae4d795c96dd57ab9ee299d9a08fe9 /t/t4018/cpp-class-definition | |
parent | t3432: test for --no-ff's interaction with fast-forward (diff) | |
download | tgif-2b318aa6c3566ad65d9547f42828f277955e6519.tar.xz |
rebase: refactor can_fast_forward into goto tower
Before, can_fast_forward was written with an if-else statement. However,
in the future, we may be adding more termination cases which would lead
to deeply nested if statements.
Refactor to use a goto tower so that future cases can be easily
inserted.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/cpp-class-definition')
0 files changed, 0 insertions, 0 deletions