0

If I checkout a branch from VCS I would like to run inspections on all the changes that the branch has made from (for example) master branch.

Is this possible?


I currently have to:

  • open all files that I know have been changed in the branch.
  • Run inspections on open files.

1 Answers1

1

There is no such functionality directly in PhpStorm, but you may try the following workaround:

  • git checkout master
  • git merge --no-commit <branch>
  • now you have all the difference between your branch and master as uncommitted local changes.
  • Invoke "Inspect Code"
  • Select "Uncommitted Changes: All"
  • git commit # commit the merge if needed (or just reset all if you don't need to merge now)
LoKi
  • 126