]> git.ipfire.org Git - thirdparty/git.git/commit - advice.h
advice: add diverging advice for novices
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 8 Mar 2023 02:48:33 +0000 (20:48 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Mar 2023 17:28:42 +0000 (09:28 -0800)
commit765071a8f27fcaae27ce940b3a784b9d586faa12
tree90867c1cb6189d7d8d8c6e3e11caa2782d4f56b9
parent725f57037d81e24eacfda6e59a19c60c0b4c8062
advice: add diverging advice for novices

The user might not necessarily know why ff only was configured, maybe an
admin did it, or the installer (Git for Windows), or perhaps they just
followed some online advice.

This can happen not only on pull.ff=only, but merge.ff=only too.

Even worse if the user has configured pull.rebase=false and
merge.ff=only, because in those cases a diverging merge will constantly
keep failing. There's no trivial way to get out of this other than
`git merge --no-ff`.

Let's not assume our users are experts in git who completely understand
all their configurations.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/advice.txt
advice.c
advice.h