# has_changes

Check if a repository has uncommitted changes.

```rhai
repo.has_changes() -> bool
```

## Examples

```rhai
let repo = git_clone("https://github.com/user/project.git");
if repo.has_changes()? {
    print("Has uncommitted changes");
    repo.reset()?;
}
```

```rhai
let tree = git_tree_new("/home/user/repos");
let repo = tree.get("myproject");
if !repo.has_changes()? {
    repo.pull()?;
}
```
