I’m basically trying to run this command, but in Magit:

git diff master..17 -- "**/*.scala"

… i.e. to view changes in all *.scala files between ref/heads/master and ref/heads/17.

I’ve tried setting =f to this glob, but that doesn’t help.

(Same question applies to git log).

Thank you!

  • 3
    Using =f from the popup is the way to restrict diff and log commands to a file, but wildcards aren't currently supported. Please open a feature request on GitHub.
    – Kyle Meyer
    Commented Jun 24, 2016 at 13:55
  • @KyleMeyer, thank you! I somehow missed this email.
    – Michal Rus
    Commented Aug 11, 2016 at 21:50

1 Answer 1


Starting with v2.8.0 Magit supports globbing in paths passed to diff and log commands. (If you use Melpa, then the respective commit is already included now.)


Your Answer

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

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