Skip to content

Instantly share code, notes, and snippets.

@bbrala
Created December 9, 2023 14:07
Show Gist options
  • Save bbrala/41b1e67f0ff5742d98fd36692b32c3dc to your computer and use it in GitHub Desktop.
Save bbrala/41b1e67f0ff5742d98fd36692b32c3dc to your computer and use it in GitHub Desktop.
Checkout project analysis results for comparison with PHPStorm diff commands
@echo off
git clone git@git.drupal.org:project/project_analysis -b results results_a
git clone git@git.drupal.org:project/project_analysis -b results results_b
git clone git@git.drupal.org:project/project_analysis -b results-d11 results_d11_a
git clone git@git.drupal.org:project/project_analysis -b results-d11 results_d11_b
cd results_a
git switch results
git pull
cd ..
cd results_b
git switch results
git fetch
git checkout HEAD~1
cd ..
cd results_d11_a
git switch results-d11
git pull
cd ..
cd results_d11_b
git switch results-d11
git fetch
git checkout HEAD~1
cd ..
echo "phpstorm diff .\results_b\results\phpstan-results\ .\results_a\results\phpstan-results\"
echo "phpstorm diff .\results_d11_b\results\phpstan-results\ .\results_d11_a\results\phpstan-results\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment