Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: rebasing-and-merging: Drop wrong statement about git

The "^0" syntax is no longer needed to fast-forward to a mainline commit;
take that out and add --ff-only to force an error if fast-forward is not
possible.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
[jc: rewrote changelog]
Link: https://lore.kernel.org/r/20230228134657.1797871-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Uwe Kleine-König and committed by
Jonathan Corbet
a414684e 0b02076f

+1 -5
+1 -5
Documentation/maintainer/rebasing-and-merging.rst
··· 213 213 emptied entirely into the mainline during the merge window, you can pull it 214 214 forward with a command like:: 215 215 216 - git merge v5.2-rc1^0 217 - 218 - The "^0" will cause Git to do a fast-forward merge (which should be 219 - possible in this situation), thus avoiding the addition of a spurious merge 220 - commit. 216 + git merge --ff-only v5.2-rc1 221 217 222 218 The guidelines laid out above are just that: guidelines. There will always 223 219 be situations that call out for a different solution, and these guidelines