Skip to content

Commit fe000f0

Browse files
committed
rebase: note preserve merges may be a pull config option
The `--preserve-merges` option was removed by v2.34.0. However users may not be aware that it is also a Pull configuration option, which is still offered by major IDE vendors such as Visual Studio. Extend the `--preserve-merges` die message to also direct users to the possible use of the `preserve` option in the `pull.rebase` config. This is an additional 'belt and braces' information statement. Signed-off-by: Philip Oakley <[email protected]>
1 parent 47f2718 commit fe000f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builtin/rebase.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,9 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
12051205
builtin_rebase_usage, 0);
12061206

12071207
if (preserve_merges_selected)
1208-
die(_("--preserve-merges was replaced by --rebase-merges"));
1208+
die(_("--preserve-merges was replaced by --rebase-merges\n"
1209+
"Note: Your `pull.rebase` configuration may also be set to 'preserve',\n"
1210+
"which is no longer supported; use 'merges' instead"));
12091211

12101212
if (action != ACTION_NONE && total_argc != 2) {
12111213
usage_with_options(builtin_rebase_usage,

0 commit comments

Comments
 (0)