How to search for function definitions across multiple repositories? #177561
              
                Unanswered
              
          
                  
                    
                      Fortotest
                    
                  
                
                  asked this question in
                Code Search and Navigation
              
            Replies: 1 comment
-
| Hi! You can use GitHub’s new code search (available at cs.github.com) to look for function definitions across multiple repositories. To narrow down your search to only definitions, try using filters like: function processPayment definition:true or use language-specific patterns, for example: def processPayment or function processPayment You can also add filters such as: org: to search across all repositories in your organization. This should help you find where the function is actually defined rather than where it’s being called. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi everyone,
I'm trying to understand a large codebase that is split across multiple repositories.
I want to find the exact definition of a specific function (e.g.,
processPayment()), but I'm not sure which repository it lives in. Using the normal search bar ongithub.zerozr99.workers.devgives me too many results, including function calls, not just the definition.What is the best way to use GitHub's Code Search to find only the definition of a function, and search for it across all repositories at once?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions