diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2022-10-17 13:17:43 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-17 11:53:03 -0700 |
commit | d42c9ffa0fa169ea51c971d1143b3f20d5a32d83 (patch) | |
tree | 670db8493a3703857a621bb02acfe6f0dd5af374 /commit.c | |
parent | a77060218dfae5e8209a0ee131f292b881ce533b (diff) |
rebase: factor out branch_base calculation
Separate out calculating the merge base between 'onto' and 'HEAD' from
the check for whether we can fast-forward or not. This means we can skip
the fast-forward checks when the rebase is forced and avoid calculating
the merge-base between 'HEAD' and 'onto' when --keep-base is given.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions