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

Searching for a commit that introduced a given code snippet

    XMLWordPrintable

    Details

    • Feedback Policy:

      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.

      Description

      Let's say I'm on a file page in source browser and I found the following line in it:

      if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
      

      I'd like to know which commit introduced it. Currently my only option seems to be scrolling up to the top and going through all commits that affected this file.

      I think being able to search for that piece of code within all commits of this given file would help.

      Tried to make my explanation short yet meaningful, please let me know if I haven't succeeded Thanks for the amazing product by the way!

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            f930168016c9 mehov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: