Is there a function magit-magic such that

(magit-magic "master") => t
(magit-magic "origin/master") => nil

assuming origin/master is a fetched, but possibly unpulled branch on remote origin? (Sorry, I don't know the proper git terminology -- which is probably why I'm having trouble finding an answer on my own.)

1 Answer 1


"Remote-tracking branch" is the official terminology, but Magit doesn't follow it strictly in this case. The function is called magit-remote-branch-p. (Well it does the opposite of what your magit-matic does).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.