๐ŸŒ US-Proxy
class="laradocs" data-preset="classic">
What's diff whatsdiff
CLI Tool

Between Command

Compare dependency changes between two commits, branches, or tags.

On this page 5

between checks out two points in your git history, reads the lock files at each, and reports every package that differs. Where analyse looks at your working directory, between compares two committed states.

The between command output

bash
whatsdiff between <from> <to>

Arguments

Argument Description
<from> Starting commit
<to> Ending commit
bash
whatsdiff between abc123 def456

Example output

code
composer.lock between v1.0.0 and v2.0.0

  โ†‘โ†‘ laravel/framework    v11.0.0  โ†’  v12.0.0  (15 releases)
  โ†‘โ†‘ symfony/console      v6.4.0   โ†’  v7.0.0   (8 releases)
   + laravel/sanctum      ^4.0
   + livewire/livewire    ^3.0
   ร— deprecated/package   ^1.0

What it does

  1. Checks out the <from> reference and reads the lock files
  2. Checks out the <to> reference and reads the lock files
  3. Compares the two states
  4. Prints every package that changed between them

When to use it

Code review. See what a branch did to your dependencies before you approve it, without reading a lock file diff.

Release notes. Work out which dependencies moved between two releases, and by how much.

Debugging. When something broke between two known-good points, the dependency list is often where the answer is.

  • analyse compares your working directory instead of two commits
  • check tests whether one specific package changed