The git diff command, in general, allows you to see differences between commits, branches, and more. The --dirstat option provides statistics per directory, allowing you to see changes in a different perspective, which can be especially useful in larger projects.