fix(cli): recommend "checkout main" option if prompted
In case straight prompts something like the following: > In repository "git-modes", HEAD on "master" is behind default branch "main" 1) Abort 2) Checkout "main" (Choose this if unsure) 3) Magit log "master..main" and open recursive edit
This commit is contained in:
parent
79736d832d
commit
c6b3a81da0
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ If ELPA-P, include packages installed with package.el (M-x package-install)."
|
|||
("^In repository \"[^\"]+\", [^ ]+ (on branch \"[^\"]+\") is ahead of default branch \"[^\"]+\""
|
||||
. "^Checkout branch \"")
|
||||
("^In repository "
|
||||
. "^Reset branch \\|^Delete remote [^,]+, re-create it with correct URL"))
|
||||
. "^Reset branch \\|^Delete remote [^,]+, re-create it with correct URL\\|^Checkout \"main\""))
|
||||
"A list of regexps, mapped to regexps.
|
||||
|
||||
Their CAR is tested against the prompt, and CDR is tested against the presented
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue