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

Code search functionality - search entire commit history

    XMLWordPrintable

Details

    • 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

      Hey team,

      Currently, when using the code search functionality to find text within the diff - this will only search the latest commit hashes rather than the full commit history, it will also only show results from the main branch.

      We have had a customer reach out requesting that the entire history be able to be searched, this way they could find which commits have specific text in the diff and which do not.

      Workaround:

      • Using git grep command can be used to search for specific phrases throughout a commit history:
        git grep hello $(git rev-list --all)
        

      Cheers!

      • Ben (Bitbucket Cloud Support)
         

      Attachments

        Activity

          People

            Unassigned Unassigned
            57b7f67f3625 Ben
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: