1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues


Issue #9279 open

Changed Files Between Commits (BB-10390)

Willem D
created an issue

I need to get a list of files that were changed between commit X and commit Y? These commits do not necessarily follow directly on each other.

This frontend feature is similar to what I require in the API. https://bitbucket.org/site/master/issue/8540/allow-reviewing-of-all-changes-to-all

Comments (15)

  1. Michael Frauenholtz staff

    Hi Willem D

    Right now we have one API endpoint to get a diff between two commits. The URL for the diff above is https://bitbucket.org/api/2.0/repositories/nautilebleu/chamilo/diff/4331d2b..d12d69f. Unfortunately this can also time out for large diffs, as it does here. We don't currently have a way to view just the changed files between two commits, nor do we have pagination for a diff. I will add a ticket for this to our backlog to be prioritized. Keep an eye on this issue for updates.


  2. Willem D reporter

    Hey Stan B your code looks really good, I like the proper use of interfacing for different providers.

    In (BitbucketService.cs) see you're using the API v2 directly which is what this issue is all about. Your project works well for viewing project statistics across Github and Bitbucket, but it is unable to display the files that were changed between each commit for bitbucket at least.

    As you've also mentioned https://developer.github.com/v3/repos/commits/#compare-two-commits just does not compare ;-) to https://bitbucket.org/api/2.0/repositories/nautilebleu/chamilo/diff/4331d2b..d12d69f Also I now see Github now suggests not to compare between more than 250 commits apart.

    Thanks for sharing, it was an interesting read. I have now "stopped watching" this issue.

  3. Log in to comment