-
Notifications
You must be signed in to change notification settings - Fork 144
Update the die() preserve-merges messages to help some users #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1181,7 +1181,9 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) | |
strbuf_reset(&buf); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Philip Oakley wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Johannes Schindelin wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Philip Oakley wrote (reply to this):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On the Git mailing list, Johannes Schindelin wrote (reply to this):
|
||
strbuf_addf(&buf, "%s/rewritten", merge_dir()); | ||
if (is_directory(buf.buf)) { | ||
die("`rebase -p` is no longer supported"); | ||
die("`rebase --preserve-merges` (-p) is no longer supported.\n" | ||
"You still have a `.git/rebase-merge/rewritten` directory, \n" | ||
"indicating a `rebase preserve-merge` is still in progress.\n"); | ||
} else { | ||
strbuf_reset(&buf); | ||
strbuf_addf(&buf, "%s/interactive", merge_dir()); | ||
|
@@ -1203,7 +1205,10 @@ int cmd_rebase(int argc, const char **argv, const char *prefix) | |
builtin_rebase_usage, 0); | ||
|
||
if (preserve_merges_selected) | ||
die(_("--preserve-merges was replaced by --rebase-merges")); | ||
die(_("--preserve-merges was replaced by --rebase-merges\n" | ||
"Also, check your `pull` configuration settings\n" | ||
"`git config --show-scope --show-origin --get-regexp 'pull.*'`\n" | ||
"which may also invoke this option.")); | ||
|
||
if (action != ACTION_NONE && total_argc != 2) { | ||
usage_with_options(builtin_rebase_usage, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Ævar Arnfjörð Bjarmason wrote (reply to this):