Comparing Rails routing configuration with git

This onelinel will show the list of changed routes between two git branches, the main, and the current one:

git checkout main && rails routes > before.txt && git checkout internal/commentable-communication && rails routes > after.txt && diff -u -b before.txt after.txt | diff-so-fancy

(diff-so-fancy is optional.)



Somewhat related: