Skip to main content

list_repos

Lists repositories indexed by Sourcebot with optional filtering and pagination. Parameters:

list_branches

You can list a repository’s branches, sorted by latest commit date (newest first). Results come from Sourcebot’s local snapshot, not live from the code host. You see branches created or deleted on the code host only after Sourcebot next syncs the repository. For each branch, you get its name, head commit SHA, latest commit time, isDefault (whether it is the repository’s default branch), and isIndexed (whether code search can search that branch). Parameters:

list_commits

Get a list of commits for a given repository. Parameters:

get_diff

Returns a structured diff between two refs in a repository using a two-dot comparison. Parameters: