diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-08-30 16:06:01 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-30 16:06:01 -0700 |
commit | 7d0daf3f12f87799a3b3f524933ef6c15d1f28c3 (patch) | |
tree | eca75e171dba696509e72c6bdb2cc31fdce65529 /advice.c | |
parent | The first batch post 2.33 (diff) | |
parent | pull: fix handling of multiple heads (diff) | |
download | tgif-7d0daf3f12f87799a3b3f524933ef6c15d1f28c3.tar.xz |
Merge branch 'en/pull-conflicting-options'
"git pull" had various corner cases that were not well thought out
around its --rebase backend, e.g. "git pull --ff-only" did not stop
but went ahead and rebased when the history on other side is not a
descendant of our history. The series tries to fix them up.
* en/pull-conflicting-options:
pull: fix handling of multiple heads
pull: update docs & code for option compatibility with rebasing
pull: abort by default when fast-forwarding is not possible
pull: make --rebase and --no-rebase override pull.ff=only
pull: since --ff-only overrides, handle it first
pull: abort if --ff-only is given and fast-forwarding is impossible
t7601: add tests of interactions with multiple merge heads and config
t7601: test interaction of merge/rebase/fast-forward flags and options
Diffstat (limited to 'advice.c')
-rw-r--r-- | advice.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -286,6 +286,11 @@ void NORETURN die_conclude_merge(void) die(_("Exiting because of unfinished merge.")); } +void NORETURN die_ff_impossible(void) +{ + die(_("Not possible to fast-forward, aborting.")); +} + void advise_on_updating_sparse_paths(struct string_list *pathspec_list) { struct string_list_item *item; |