Skip to content

Commit ad1a109

Browse files
PhilipOakleydscho
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 b0d8eff commit ad1a109

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
@@ -1205,7 +1205,10 @@ 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+
"Also, check your `pull` configuration settings\n"
1210+
"`git config --show-scope --show-origin --get-regexp 'pull.*'`\n"
1211+
"which may also invoke this option."));
12091212

12101213
if (action != ACTION_NONE && total_argc != 2) {
12111214
usage_with_options(builtin_rebase_usage,

0 commit comments

Comments
 (0)