I'm trying to debug an error I'm encountering in the latest version of the Custom Formatters module and I'm encountering a common problem I have in debugging. There's no easy way to do a project-wide diff of project from release to release. I'd like to easily diff https://www.drupal.org/project/custom_formatters 7.x-2.4 with 7.x-2.3. I can use software locally to do that, but github has spoiled me I guess. Am I missing a hidden function of drupal.org that shows diffs between releases?


You can clone down the project via

git clone --branch 7.x-2.x http://git.drupal.org/project/custom_formatters.git

When in the directory do a git diff 7.x-2.4..7.x-2.3 and review the output.

If you don't want to scroll through your terminal, try git diff 7.x-2.4..7.x-2.3 > version-change.diff and pop the output into a diff viewer.

I wish cgit had this built it, but the diff viewer in it only supports per commit (as far as I know)

  • Thanks. I didn't think it'd be quite that easy to do in Git. I still think it'd be nice to see diffs on drupal.org/cgit.drupalcode.org, but this is a solid solution. I found more git diff tips on tags on this other SO post for anyone else who's interested: stackoverflow.com/a/3211829/721065 – cdmo Jul 20 '15 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.