# list

List all git repositories under the GitTree base path.

```rhai
tree.list() -> Array
```

## Examples

```rhai
let tree = git_tree_new("/tmp/repos");
let repos = tree.list();
print(`Found ${repos.len()} repositories`);
```

```rhai
let tree = git_tree_new("/home/user/projects");
for repo_path in tree.list() {
    print(`Repo: ${repo_path}`);
}
```
