Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22768

Make the number of lines in "Show more lines" configurable or provide an option to "Show all" in PR diffs

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      When a file has changes in multiple places, e.g. lines 5-25 and lines 165-185, then the pull request diff will show the changed lines and a few lines before and after the changes.

      There are two options, Show more lines above and Show more lines below, in the column with the line numbers. Each of them will show another 10 lines of code when clicked.

      If there is a large number of lines between the changes, then the user has to click several times if they want to see all of them.

      For each file, there is an option View entire file (from the three dots menu at the top of each file) that one could use to view the whole file. However, this will show File is too large to display for large files.

      Suggested Solution

      It would be helpful to have an option Show all lines that will show all the lines between changes, or make the number of lines (that is displayed when clicking the options Show more lines above and Show more lines below) configurable by the user.

      That would make it easier for a user to view all lines between changes if a file is too large to be displayed via View entire file.

              Unassigned Unassigned
              tboudale Theodora Boudale (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: