3

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 Jun 24 '16 at 13:55
  • @KyleMeyer, thank you! I somehow missed this email. – Michal Rus Aug 11 '16 at 21:50
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, privacy policy and cookie policy

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