mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user