summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2019-08-27 01:37:56 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-08-27 15:33:40 -0700
commit2b318aa6c3566ad65d9547f42828f277955e6519 (patch)
tree9bcebc2372ae4d795c96dd57ab9ee299d9a08fe9 /diff.h
parentt3432: test for --no-ff's interaction with fast-forward (diff)
downloadtgif-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 'diff.h')
0 files changed, 0 insertions, 0 deletions