Skip to content

Commit 1c8a36f

Browse files
committed
rebase: preserve is also a pull option, tell dying users
The `--preserve-merges` option was removed by v2.35.0. However users may not be aware that it is also a Pull option, and it is still offered by major IDE vendors such as Visual Studio. Extend the `--preserve-merges` die message to direct users to this option and it's locations. Signed-off-by: Philip Oakley <[email protected]>
1 parent 99be4d8 commit 1c8a36f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builtin/rebase.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,10 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
11791179
builtin_rebase_usage, 0);
11801180

11811181
if (preserve_merges_selected)
1182-
die(_("--preserve-merges was replaced by --rebase-merges"));
1182+
die(_("--preserve-merges was replaced by --rebase-merges\n"
1183+
"Also, check your `pull` configuration settings\n"
1184+
"`git config --show-scope --show-origin --get-regexp 'pull.*'`\n"
1185+
"which may also invoke this option."));
11831186

11841187
if (action != ACTION_NONE && total_argc != 2) {
11851188
usage_with_options(builtin_rebase_usage,

0 commit comments

Comments
 (0)