summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2022-10-17 13:17:43 +0000
committerJunio C Hamano <gitster@pobox.com>2022-10-17 11:53:03 -0700
commitd42c9ffa0fa169ea51c971d1143b3f20d5a32d83 (patch)
tree670db8493a3703857a621bb02acfe6f0dd5af374 /commit.c
parenta77060218dfae5e8209a0ee131f292b881ce533b (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