Skip to content

Commit 3e49e06

Browse files
PhilipOakleyGit for Windows Build Agent
authored andcommitted
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 793b6dd commit 3e49e06

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
@@ -1207,7 +1207,10 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
12071207
builtin_rebase_usage, 0);
12081208

12091209
if (preserve_merges_selected)
1210-
die(_("--preserve-merges was replaced by --rebase-merges"));
1210+
die(_("--preserve-merges was replaced by --rebase-merges\n"
1211+
"Also, check your `pull` configuration settings\n"
1212+
"`git config --show-scope --show-origin --get-regexp 'pull.*'`\n"
1213+
"which may also invoke this option."));
12111214

12121215
if (action != ACTION_NONE && total_argc != 2) {
12131216
usage_with_options(builtin_rebase_usage,

0 commit comments

Comments
 (0)